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

Side by Side Diff: extensions/test/test_extensions_client.h

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ENABLE_EXTENSIONS guard in core chrome code 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
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 EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/common/extensions_client.h" 9 #include "extensions/common/extensions_client.h"
10 10
(...skipping 23 matching lines...) Expand all
34 virtual URLPatternSet GetPermittedChromeSchemeHosts( 34 virtual URLPatternSet GetPermittedChromeSchemeHosts(
35 const Extension* extension, 35 const Extension* extension,
36 const APIPermissionSet& api_permissions) const OVERRIDE; 36 const APIPermissionSet& api_permissions) const OVERRIDE;
37 virtual bool IsScriptableURL(const GURL& url, 37 virtual bool IsScriptableURL(const GURL& url,
38 std::string* error) const OVERRIDE; 38 std::string* error) const OVERRIDE;
39 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE; 39 virtual bool IsAPISchemaGenerated(const std::string& name) const OVERRIDE;
40 virtual base::StringPiece GetAPISchema( 40 virtual base::StringPiece GetAPISchema(
41 const std::string& name) const OVERRIDE; 41 const std::string& name) const OVERRIDE;
42 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const OVERRIDE; 42 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const OVERRIDE;
43 virtual bool ShouldSuppressFatalErrors() const OVERRIDE; 43 virtual bool ShouldSuppressFatalErrors() const OVERRIDE;
44 virtual std::string GetWebstoreBaseURL() const OVERRIDE;
45 virtual std::string GetWebstoreUpdateURL() const OVERRIDE;
46 virtual bool IsBlacklistUpdateURL(const GURL& url) const OVERRIDE;
44 47
45 // A whitelist of extensions that can script anywhere. Do not add to this 48 // A whitelist of extensions that can script anywhere. Do not add to this
46 // list (except in tests) without consulting the Extensions team first. 49 // list (except in tests) without consulting the Extensions team first.
47 // Note: Component extensions have this right implicitly and do not need to be 50 // Note: Component extensions have this right implicitly and do not need to be
48 // added to this list. 51 // added to this list.
49 ScriptingWhitelist scripting_whitelist_; 52 ScriptingWhitelist scripting_whitelist_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); 54 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient);
52 }; 55 };
53 56
54 } // namespace extensions 57 } // namespace extensions
55 58
56 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 59 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/shell/common/shell_extensions_client.cc ('k') | extensions/test/test_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698