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

Side by Side Diff: components/policy/core/common/cloud/policy_header_service.h

Issue 2059143002: "up-to-date" should only use hyphens when used as compound modifier of a noun (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months 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 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_CLOUD_POLICY_HEADER_SERVICE_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "components/policy/core/common/cloud/cloud_policy_store.h" 14 #include "components/policy/core/common/cloud/cloud_policy_store.h"
15 #include "components/policy/policy_export.h" 15 #include "components/policy/policy_export.h"
16 16
17 namespace base { 17 namespace base {
18 class SequencedTaskRunner; 18 class SequencedTaskRunner;
19 } 19 }
20 20
21 namespace policy { 21 namespace policy {
22 22
23 class PolicyHeaderIOHelper; 23 class PolicyHeaderIOHelper;
24 24
25 // Per-profile service used to generate PolicyHeaderIOHelper objects, and 25 // Per-profile service used to generate PolicyHeaderIOHelper objects, and
26 // keep them up-to-date as policy changes. 26 // keep them up to date as policy changes.
27 // TODO(atwilson): Move to components/policy once CloudPolicyStore is moved. 27 // TODO(atwilson): Move to components/policy once CloudPolicyStore is moved.
28 class POLICY_EXPORT PolicyHeaderService : public CloudPolicyStore::Observer { 28 class POLICY_EXPORT PolicyHeaderService : public CloudPolicyStore::Observer {
29 public: 29 public:
30 // |device_policy_store| can be null on platforms that do not support 30 // |device_policy_store| can be null on platforms that do not support
31 // device policy. Both |user_policy_store| and |device_policy_store| must 31 // device policy. Both |user_policy_store| and |device_policy_store| must
32 // outlive this object. 32 // outlive this object.
33 PolicyHeaderService(const std::string& server_url, 33 PolicyHeaderService(const std::string& server_url,
34 const std::string& verification_key_hash, 34 const std::string& verification_key_hash,
35 CloudPolicyStore* user_policy_store, 35 CloudPolicyStore* user_policy_store,
36 CloudPolicyStore* device_policy_store); 36 CloudPolicyStore* device_policy_store);
(...skipping 30 matching lines...) Expand all
67 // Weak pointers to User-/Device-level policy stores. 67 // Weak pointers to User-/Device-level policy stores.
68 CloudPolicyStore* user_policy_store_; 68 CloudPolicyStore* user_policy_store_;
69 CloudPolicyStore* device_policy_store_; 69 CloudPolicyStore* device_policy_store_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(PolicyHeaderService); 71 DISALLOW_COPY_AND_ASSIGN(PolicyHeaderService);
72 }; 72 };
73 73
74 } // namespace policy 74 } // namespace policy
75 75
76 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_ 76 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/password_store.cc ('k') | components/search_provider_logos/logo_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698