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

Side by Side Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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 (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_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 public chromeos::DeviceSettingsService::Observer { 33 public chromeos::DeviceSettingsService::Observer {
34 public: 34 public:
35 DeviceCloudPolicyStoreChromeOS( 35 DeviceCloudPolicyStoreChromeOS(
36 chromeos::DeviceSettingsService* device_settings_service, 36 chromeos::DeviceSettingsService* device_settings_service,
37 EnterpriseInstallAttributes* install_attributes, 37 EnterpriseInstallAttributes* install_attributes,
38 scoped_refptr<base::SequencedTaskRunner> background_task_runner); 38 scoped_refptr<base::SequencedTaskRunner> background_task_runner);
39 virtual ~DeviceCloudPolicyStoreChromeOS(); 39 virtual ~DeviceCloudPolicyStoreChromeOS();
40 40
41 // CloudPolicyStore: 41 // CloudPolicyStore:
42 virtual void Store( 42 virtual void Store(
43 const enterprise_management::PolicyFetchResponse& policy) OVERRIDE; 43 const enterprise_management::PolicyFetchResponse& policy) override;
44 virtual void Load() OVERRIDE; 44 virtual void Load() override;
45 45
46 // Installs initial policy. This is different from Store() in that it skips 46 // Installs initial policy. This is different from Store() in that it skips
47 // the signature validation step against already-installed policy. The checks 47 // the signature validation step against already-installed policy. The checks
48 // against installation-time attributes are performed nevertheless. The result 48 // against installation-time attributes are performed nevertheless. The result
49 // of the operation is reported through the OnStoreLoaded() or OnStoreError() 49 // of the operation is reported through the OnStoreLoaded() or OnStoreError()
50 // observer callbacks. 50 // observer callbacks.
51 void InstallInitialPolicy( 51 void InstallInitialPolicy(
52 const enterprise_management::PolicyFetchResponse& policy); 52 const enterprise_management::PolicyFetchResponse& policy);
53 53
54 // chromeos::DeviceSettingsService::Observer: 54 // chromeos::DeviceSettingsService::Observer:
55 virtual void OwnershipStatusChanged() OVERRIDE; 55 virtual void OwnershipStatusChanged() override;
56 virtual void DeviceSettingsUpdated() OVERRIDE; 56 virtual void DeviceSettingsUpdated() override;
57 57
58 private: 58 private:
59 // Create a validator for |policy| with basic device policy configuration and 59 // Create a validator for |policy| with basic device policy configuration and
60 // OnPolicyStored() as the completion callback. 60 // OnPolicyStored() as the completion callback.
61 scoped_ptr<DeviceCloudPolicyValidator> CreateValidator( 61 scoped_ptr<DeviceCloudPolicyValidator> CreateValidator(
62 const enterprise_management::PolicyFetchResponse& policy); 62 const enterprise_management::PolicyFetchResponse& policy);
63 63
64 // Called on completion on the policy validation prior to storing policy. 64 // Called on completion on the policy validation prior to storing policy.
65 // Starts the actual store operation. 65 // Starts the actual store operation.
66 void OnPolicyToStoreValidated(DeviceCloudPolicyValidator* validator); 66 void OnPolicyToStoreValidated(DeviceCloudPolicyValidator* validator);
(...skipping 13 matching lines...) Expand all
80 bool enrollment_validation_done_; 80 bool enrollment_validation_done_;
81 81
82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; 82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); 84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS);
85 }; 85 };
86 86
87 } // namespace policy 87 } // namespace policy
88 88
89 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698