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

Side by Side Diff: components/policy/core/common/policy_map.h

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace fix. Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 16 matching lines...) Expand all
27 PolicyScope scope; 27 PolicyScope scope;
28 base::Value* value; 28 base::Value* value;
29 ExternalDataFetcher* external_data_fetcher; 29 ExternalDataFetcher* external_data_fetcher;
30 30
31 Entry() 31 Entry()
32 : level(POLICY_LEVEL_RECOMMENDED), 32 : level(POLICY_LEVEL_RECOMMENDED),
33 scope(POLICY_SCOPE_USER), 33 scope(POLICY_SCOPE_USER),
34 value(NULL), 34 value(NULL),
35 external_data_fetcher(NULL) {} 35 external_data_fetcher(NULL) {}
36 36
37 // Returns a copy of |this|.
38 scoped_ptr<Entry> DeepCopy() const;
39
37 // Returns true if |this| has higher priority than |other|. 40 // Returns true if |this| has higher priority than |other|.
38 bool has_higher_priority_than(const Entry& other) const; 41 bool has_higher_priority_than(const Entry& other) const;
39 42
40 // Returns true if |this| equals |other|. 43 // Returns true if |this| equals |other|.
41 bool Equals(const Entry& other) const; 44 bool Equals(const Entry& other) const;
42 }; 45 };
43 46
44 typedef std::map<std::string, Entry> PolicyMapType; 47 typedef std::map<std::string, Entry> PolicyMapType;
45 typedef PolicyMapType::const_iterator const_iterator; 48 typedef PolicyMapType::const_iterator const_iterator;
46 49
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const PolicyMapType::value_type& b); 119 const PolicyMapType::value_type& b);
117 120
118 PolicyMapType map_; 121 PolicyMapType map_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(PolicyMap); 123 DISALLOW_COPY_AND_ASSIGN(PolicyMap);
121 }; 124 };
122 125
123 } // namespace policy 126 } // namespace policy
124 127
125 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_ 128 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698