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

Side by Side Diff: components/ownership/owner_settings_service.h

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ 5 #ifndef COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_
6 #define COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ 6 #define COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 53
54 typedef base::Callback<void( 54 typedef base::Callback<void(
55 scoped_ptr<enterprise_management::PolicyFetchResponse> policy_response)> 55 scoped_ptr<enterprise_management::PolicyFetchResponse> policy_response)>
56 AssembleAndSignPolicyAsyncCallback; 56 AssembleAndSignPolicyAsyncCallback;
57 57
58 typedef base::Callback<void(bool is_owner)> IsOwnerCallback; 58 typedef base::Callback<void(bool is_owner)> IsOwnerCallback;
59 59
60 explicit OwnerSettingsService( 60 explicit OwnerSettingsService(
61 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); 61 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
62 virtual ~OwnerSettingsService(); 62 ~OwnerSettingsService() override;
63 63
64 base::WeakPtr<OwnerSettingsService> as_weak_ptr() { 64 base::WeakPtr<OwnerSettingsService> as_weak_ptr() {
65 return weak_factory_.GetWeakPtr(); 65 return weak_factory_.GetWeakPtr();
66 } 66 }
67 67
68 void AddObserver(Observer* observer); 68 void AddObserver(Observer* observer);
69 69
70 void RemoveObserver(Observer* observer); 70 void RemoveObserver(Observer* observer);
71 71
72 // Returns whether current user is owner or not. When this method 72 // Returns whether current user is owner or not. When this method
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 private: 133 private:
134 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; 134 base::WeakPtrFactory<OwnerSettingsService> weak_factory_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); 136 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService);
137 }; 137 };
138 138
139 } // namespace ownership 139 } // namespace ownership
140 140
141 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ 141 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698