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

Side by Side Diff: chrome/browser/extensions/install_verifier.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (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 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 CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void AddProvisional(const ExtensionIdSet& ids); 77 void AddProvisional(const ExtensionIdSet& ids);
78 78
79 // Removes an id or set of ids from the verified list. 79 // Removes an id or set of ids from the verified list.
80 void Remove(const std::string& id); 80 void Remove(const std::string& id);
81 void RemoveMany(const ExtensionIdSet& ids); 81 void RemoveMany(const ExtensionIdSet& ids);
82 82
83 // Returns whether an extension id is allowed by policy. 83 // Returns whether an extension id is allowed by policy.
84 bool AllowedByEnterprisePolicy(const std::string& id) const; 84 bool AllowedByEnterprisePolicy(const std::string& id) const;
85 85
86 // ManagementPolicy::Provider interface. 86 // ManagementPolicy::Provider interface.
87 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 87 virtual std::string GetDebugPolicyProviderName() const override;
88 virtual bool MustRemainDisabled(const Extension* extension, 88 virtual bool MustRemainDisabled(const Extension* extension,
89 Extension::DisableReason* reason, 89 Extension::DisableReason* reason,
90 base::string16* error) const OVERRIDE; 90 base::string16* error) const override;
91 91
92 private: 92 private:
93 // We keep a list of operations to the current set of extensions. 93 // We keep a list of operations to the current set of extensions.
94 enum OperationType { 94 enum OperationType {
95 ADD_SINGLE, // Adding a single extension to be verified. 95 ADD_SINGLE, // Adding a single extension to be verified.
96 ADD_ALL, // Adding all extensions to be verified. 96 ADD_ALL, // Adding all extensions to be verified.
97 ADD_ALL_BOOTSTRAP, // Adding all extensions because of a bootstrapping. 97 ADD_ALL_BOOTSTRAP, // Adding all extensions because of a bootstrapping.
98 ADD_PROVISIONAL, // Adding one or more provisionally-allowed extensions. 98 ADD_PROVISIONAL, // Adding one or more provisionally-allowed extensions.
99 REMOVE // Remove one or more extensions. 99 REMOVE // Remove one or more extensions.
100 }; 100 };
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ExtensionIdSet provisional_; 169 ExtensionIdSet provisional_;
170 170
171 base::WeakPtrFactory<InstallVerifier> weak_factory_; 171 base::WeakPtrFactory<InstallVerifier> weak_factory_;
172 172
173 DISALLOW_COPY_AND_ASSIGN(InstallVerifier); 173 DISALLOW_COPY_AND_ASSIGN(InstallVerifier);
174 }; 174 };
175 175
176 } // namespace extensions 176 } // namespace extensions
177 177
178 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_ 178 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_VERIFIER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/install_tracker_factory.h ('k') | chrome/browser/extensions/isolated_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698