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

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

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 20 matching lines...) Expand all
31 // which deal with ownership, keypairs and owner-related settings. 31 // which deal with ownership, keypairs and owner-related settings.
32 class OWNERSHIP_EXPORT OwnerSettingsService : public KeyedService { 32 class OWNERSHIP_EXPORT OwnerSettingsService : public KeyedService {
33 public: 33 public:
34 typedef base::Callback<void(std::string policy_blob)> 34 typedef base::Callback<void(std::string policy_blob)>
35 AssembleAndSignPolicyAsyncCallback; 35 AssembleAndSignPolicyAsyncCallback;
36 36
37 typedef base::Callback<void(bool is_owner)> IsOwnerCallback; 37 typedef base::Callback<void(bool is_owner)> IsOwnerCallback;
38 38
39 explicit OwnerSettingsService( 39 explicit OwnerSettingsService(
40 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); 40 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util);
41 virtual ~OwnerSettingsService(); 41 ~OwnerSettingsService() override;
42 42
43 base::WeakPtr<OwnerSettingsService> as_weak_ptr() { 43 base::WeakPtr<OwnerSettingsService> as_weak_ptr() {
44 return weak_factory_.GetWeakPtr(); 44 return weak_factory_.GetWeakPtr();
45 } 45 }
46 46
47 // Returns whether current user is owner or not. When this method 47 // Returns whether current user is owner or not. When this method
48 // is called too early, incorrect result can be returned because 48 // is called too early, incorrect result can be returned because
49 // private key loading may be in progress. 49 // private key loading may be in progress.
50 bool IsOwner(); 50 bool IsOwner();
51 51
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 private: 94 private:
95 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; 95 base::WeakPtrFactory<OwnerSettingsService> weak_factory_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); 97 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService);
98 }; 98 };
99 99
100 } // namespace ownership 100 } // namespace ownership
101 101
102 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ 102 #endif // COMPONENTS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698