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

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

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DEVICE_POLICY_CACHE_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_callback_factory.h" 9 #include "base/memory/scoped_callback_factory.h"
10 #include "chrome/browser/chromeos/login/signed_settings.h" 10 #include "chrome/browser/chromeos/login/signed_settings.h"
11 #include "chrome/browser/chromeos/login/signed_settings_helper.h" 11 #include "chrome/browser/chromeos/login/signed_settings_helper.h"
12 #include "chrome/browser/policy/cloud_policy_cache_base.h" 12 #include "chrome/browser/policy/cloud_policy_cache_base.h"
13 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" 13 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h"
14 14
15 namespace policy { 15 namespace policy {
16 16
17 class CloudPolicyDataStore; 17 class CloudPolicyDataStore;
18 class EnterpriseInstallAttributes; 18 class EnterpriseInstallAttributes;
19 class PolicyMap; 19 class PolicyMap;
20 20
21 namespace em = enterprise_management; 21 namespace em = enterprise_management;
22 22
23 // CloudPolicyCacheBase implementation that persists policy information 23 // CloudPolicyCacheBase implementation that persists policy information
24 // to ChromeOS' session manager (via SignedSettingsHelper). 24 // to ChromeOS' session manager (via SignedSettingsHelper).
25 class DevicePolicyCache : public CloudPolicyCacheBase, 25 class DevicePolicyCache : public CloudPolicyCacheBase,
26 public chromeos::SignedSettingsHelper::Callback { 26 public chromeos::SignedSettingsHelper::Callback {
27 public: 27 public:
28 explicit DevicePolicyCache(CloudPolicyDataStore* data_store, 28 DevicePolicyCache(CloudPolicyDataStore* data_store,
29 EnterpriseInstallAttributes* install_attributes); 29 EnterpriseInstallAttributes* install_attributes);
30 virtual ~DevicePolicyCache(); 30 virtual ~DevicePolicyCache();
31 31
32 // CloudPolicyCacheBase implementation: 32 // CloudPolicyCacheBase implementation:
33 virtual void Load() OVERRIDE; 33 virtual void Load() OVERRIDE;
34 virtual void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE; 34 virtual void SetPolicy(const em::PolicyFetchResponse& policy) OVERRIDE;
35 virtual void SetUnmanaged() OVERRIDE; 35 virtual void SetUnmanaged() OVERRIDE;
36 virtual bool IsReady() OVERRIDE; 36 virtual bool IsReady() OVERRIDE;
37 37
38 // SignedSettingsHelper::Callback implementation: 38 // SignedSettingsHelper::Callback implementation:
39 virtual void OnRetrievePolicyCompleted( 39 virtual void OnRetrievePolicyCompleted(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool starting_up_; 74 bool starting_up_;
75 75
76 base::ScopedCallbackFactory<DevicePolicyCache> callback_factory_; 76 base::ScopedCallbackFactory<DevicePolicyCache> callback_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache); 78 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCache);
79 }; 79 };
80 80
81 } // namespace policy 81 } // namespace policy
82 82
83 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_ 83 #endif // CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugin_data_remover_helper.cc ('k') | chrome/browser/printing/print_dialog_cloud_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698