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

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

Issue 666153002: Standardize usage of virtual/override/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 (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_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 16 matching lines...) Expand all
27 enum InstallationType { 27 enum InstallationType {
28 // Installed extensions are not allowed to be disabled or removed. 28 // Installed extensions are not allowed to be disabled or removed.
29 FORCED, 29 FORCED,
30 // Installed extensions are allowed to be disabled but not removed. 30 // Installed extensions are allowed to be disabled but not removed.
31 RECOMMENDED 31 RECOMMENDED
32 }; 32 };
33 33
34 ExternalPolicyLoader(ExtensionManagement* settings, InstallationType type); 34 ExternalPolicyLoader(ExtensionManagement* settings, InstallationType type);
35 35
36 // ExtensionManagement::Observer implementation 36 // ExtensionManagement::Observer implementation
37 virtual void OnExtensionManagementSettingsChanged() override; 37 void OnExtensionManagementSettingsChanged() override;
38 38
39 // Adds an extension to be updated to the pref dictionary. 39 // Adds an extension to be updated to the pref dictionary.
40 static void AddExtension(base::DictionaryValue* dict, 40 static void AddExtension(base::DictionaryValue* dict,
41 const std::string& extension_id, 41 const std::string& extension_id,
42 const std::string& update_url); 42 const std::string& update_url);
43 43
44 protected: 44 protected:
45 virtual void StartLoading() override; 45 void StartLoading() override;
46 46
47 private: 47 private:
48 friend class base::RefCountedThreadSafe<ExternalLoader>; 48 friend class base::RefCountedThreadSafe<ExternalLoader>;
49 49
50 virtual ~ExternalPolicyLoader(); 50 ~ExternalPolicyLoader() override;
51 51
52 ExtensionManagement* settings_; 52 ExtensionManagement* settings_;
53 InstallationType type_; 53 InstallationType type_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader); 55 DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader);
56 }; 56 };
57 57
58 } // namespace extensions 58 } // namespace extensions
59 59
60 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_ 60 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_POLICY_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_install_manager.h ('k') | chrome/browser/extensions/external_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698