Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: chrome/browser/policy/policy_bundle.h

Issue 50613003: Move the PolicyDomain and PolicyNamespace types to the policy component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ 5 #ifndef CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_
6 #define CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ 6 #define CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chrome/browser/policy/policy_service.h" 12 #include "chrome/browser/policy/policy_map.h"
13 #include "components/policy/core/common/policy_namespace.h"
13 14
14 namespace policy { 15 namespace policy {
15 16
16 class PolicyMap;
17
18 // Maps policy namespaces to PolicyMaps. 17 // Maps policy namespaces to PolicyMaps.
19 class PolicyBundle { 18 class PolicyBundle {
20 public: 19 public:
21 typedef std::map<PolicyNamespace, PolicyMap*> MapType; 20 typedef std::map<PolicyNamespace, PolicyMap*> MapType;
22 typedef MapType::iterator iterator; 21 typedef MapType::iterator iterator;
23 typedef MapType::const_iterator const_iterator; 22 typedef MapType::const_iterator const_iterator;
24 23
25 PolicyBundle(); 24 PolicyBundle();
26 virtual ~PolicyBundle(); 25 virtual ~PolicyBundle();
27 26
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // An empty PolicyMap that is returned by const Get() for namespaces that 63 // An empty PolicyMap that is returned by const Get() for namespaces that
65 // do not exist in |policy_bundle_|. 64 // do not exist in |policy_bundle_|.
66 const PolicyMap kEmpty_; 65 const PolicyMap kEmpty_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(PolicyBundle); 67 DISALLOW_COPY_AND_ASSIGN(PolicyBundle);
69 }; 68 };
70 69
71 } // namespace policy 70 } // namespace policy
72 71
73 #endif // CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_ 72 #endif // CHROME_BROWSER_POLICY_POLICY_BUNDLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider.h ('k') | chrome/browser/policy/policy_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698