blob: 9a85dc81f93a5a7bfe60541a8779b9d1e3ddb725 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "permission_broker/rule.h"
namespace permission_broker {
const char* Rule::ResultToString(const Result& result) {
switch (result) {
case ALLOW:
return "ALLOW";
case DENY:
return "DENY";
case IGNORE:
return "IGNORE";
return "INVALID";
Rule::Rule(const std::string& name) : name_(name) {}
const std::string& Rule::name() const {
return name_;
} // namespace permission_broker