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

Side by Side Diff: chrome/common/extensions/chrome_extensions_client.h

Issue 503033002: Move ExtensionWarningService and ExtensionsWarningSet to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_web_view_internal
Patch Set: rebase Created 6 years, 3 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_
6 #define CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_ 6 #define CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_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/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "chrome/common/extensions/permissions/chrome_api_permissions.h" 11 #include "chrome/common/extensions/permissions/chrome_api_permissions.h"
12 #include "chrome/common/extensions/permissions/chrome_permission_message_provide r.h" 12 #include "chrome/common/extensions/permissions/chrome_permission_message_provide r.h"
13 #include "extensions/common/extensions_client.h" 13 #include "extensions/common/extensions_client.h"
14 #include "extensions/common/permissions/extensions_api_permissions.h" 14 #include "extensions/common/permissions/extensions_api_permissions.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // The implementation of ExtensionsClient for Chrome, which encapsulates the 18 // The implementation of ExtensionsClient for Chrome, which encapsulates the
19 // global knowledge of features, permissions, and manifest fields. 19 // global knowledge of features, permissions, and manifest fields.
20 class ChromeExtensionsClient : public ExtensionsClient { 20 class ChromeExtensionsClient : public ExtensionsClient {
21 public: 21 public:
22 ChromeExtensionsClient(); 22 ChromeExtensionsClient();
23 virtual ~ChromeExtensionsClient(); 23 virtual ~ChromeExtensionsClient();
24 24
25 virtual void Initialize() OVERRIDE; 25 virtual void Initialize() OVERRIDE;
26 26
27 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const 27 virtual const PermissionMessageProvider& GetPermissionMessageProvider() const
28 OVERRIDE; 28 OVERRIDE;
29 virtual const std::string GetProductName() OVERRIDE;
29 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( 30 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
30 const std::string& name) const OVERRIDE; 31 const std::string& name) const OVERRIDE;
31 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 32 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
32 const std::string& name) const OVERRIDE; 33 const std::string& name) const OVERRIDE;
33 virtual void FilterHostPermissions( 34 virtual void FilterHostPermissions(
34 const URLPatternSet& hosts, 35 const URLPatternSet& hosts,
35 URLPatternSet* new_hosts, 36 URLPatternSet* new_hosts,
36 std::set<PermissionMessage>* messages) const OVERRIDE; 37 std::set<PermissionMessage>* messages) const OVERRIDE;
37 virtual void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) 38 virtual void SetScriptingWhitelist(const ScriptingWhitelist& whitelist)
38 OVERRIDE; 39 OVERRIDE;
(...skipping 24 matching lines...) Expand all
63 ScriptingWhitelist scripting_whitelist_; 64 ScriptingWhitelist scripting_whitelist_;
64 65
65 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsClient>; 66 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsClient>;
66 67
67 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsClient); 68 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsClient);
68 }; 69 };
69 70
70 } // namespace extensions 71 } // namespace extensions
71 72
72 #endif // CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_ 73 #endif // CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698