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

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

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_renderer.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"
(...skipping 26 matching lines...) Expand all
37 virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE; 37 virtual const ScriptingWhitelist& GetScriptingWhitelist() const OVERRIDE;
38 virtual URLPatternSet GetPermittedChromeSchemeHosts( 38 virtual URLPatternSet GetPermittedChromeSchemeHosts(
39 const Extension* extension, 39 const Extension* extension,
40 const APIPermissionSet& api_permissions) const OVERRIDE; 40 const APIPermissionSet& api_permissions) const OVERRIDE;
41 virtual bool IsScriptableURL(const GURL& url, std::string* error) const 41 virtual bool IsScriptableURL(const GURL& url, std::string* error) const
42 OVERRIDE; 42 OVERRIDE;
43 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE; 43 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE;
44 virtual base::StringPiece GetAPISchema(const std::string& name) const 44 virtual base::StringPiece GetAPISchema(const std::string& name) const
45 OVERRIDE; 45 OVERRIDE;
46 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const OVERRIDE; 46 virtual void AddExtraFeatureFilters(SimpleFeature* feature) const OVERRIDE;
47 virtual bool ShouldSuppressFatalErrors() const OVERRIDE;
47 48
48 // Get the LazyInstance for ChromeExtensionsClient. 49 // Get the LazyInstance for ChromeExtensionsClient.
49 static ChromeExtensionsClient* GetInstance(); 50 static ChromeExtensionsClient* GetInstance();
50 51
51 private: 52 private:
52 const ChromeAPIPermissions chrome_api_permissions_; 53 const ChromeAPIPermissions chrome_api_permissions_;
53 const ChromePermissionMessageProvider permission_message_provider_; 54 const ChromePermissionMessageProvider permission_message_provider_;
54 55
55 // A whitelist of extensions that can script anywhere. Do not add to this 56 // A whitelist of extensions that can script anywhere. Do not add to this
56 // list (except in tests) without consulting the Extensions team first. 57 // list (except in tests) without consulting the Extensions team first.
57 // Note: Component extensions have this right implicitly and do not need to be 58 // Note: Component extensions have this right implicitly and do not need to be
58 // added to this list. 59 // added to this list.
59 ScriptingWhitelist scripting_whitelist_; 60 ScriptingWhitelist scripting_whitelist_;
60 61
61 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsClient>; 62 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsClient>;
62 63
63 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsClient); 64 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsClient);
64 }; 65 };
65 66
66 } // namespace extensions 67 } // namespace extensions
67 68
68 #endif // CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_ 69 #endif // CHROME_COMMON_EXTENSIONS_CHROME_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/common/extensions/chrome_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698