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

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

Issue 2506713002: Avoid parsing the webstore base url so much. (Closed)
Patch Set: fix chromeos Created 4 years, 1 month 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 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; 42 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
43 const ScriptingWhitelist& GetScriptingWhitelist() const override; 43 const ScriptingWhitelist& GetScriptingWhitelist() const override;
44 URLPatternSet GetPermittedChromeSchemeHosts( 44 URLPatternSet GetPermittedChromeSchemeHosts(
45 const Extension* extension, 45 const Extension* extension,
46 const APIPermissionSet& api_permissions) const override; 46 const APIPermissionSet& api_permissions) const override;
47 bool IsScriptableURL(const GURL& url, std::string* error) const override; 47 bool IsScriptableURL(const GURL& url, std::string* error) const override;
48 bool IsAPISchemaGenerated(const std::string& name) const override; 48 bool IsAPISchemaGenerated(const std::string& name) const override;
49 base::StringPiece GetAPISchema(const std::string& name) const override; 49 base::StringPiece GetAPISchema(const std::string& name) const override;
50 bool ShouldSuppressFatalErrors() const override; 50 bool ShouldSuppressFatalErrors() const override;
51 void RecordDidSuppressFatalError() override; 51 void RecordDidSuppressFatalError() override;
52 std::string GetWebstoreBaseURL() const override; 52 const GURL& GetWebstoreBaseURL() const override;
53 const GURL& GetWebstoreUpdateURL() const override; 53 const GURL& GetWebstoreUpdateURL() const override;
54 bool IsBlacklistUpdateURL(const GURL& url) const override; 54 bool IsBlacklistUpdateURL(const GURL& url) const override;
55 std::set<base::FilePath> GetBrowserImagePaths( 55 std::set<base::FilePath> GetBrowserImagePaths(
56 const Extension* extension) override; 56 const Extension* extension) override;
57 57
58 // A whitelist of extensions that can script anywhere. Do not add to this 58 // A whitelist of extensions that can script anywhere. Do not add to this
59 // list (except in tests) without consulting the Extensions team first. 59 // list (except in tests) without consulting the Extensions team first.
60 // Note: Component extensions have this right implicitly and do not need to be 60 // Note: Component extensions have this right implicitly and do not need to be
61 // added to this list. 61 // added to this list.
62 ScriptingWhitelist scripting_whitelist_; 62 ScriptingWhitelist scripting_whitelist_;
63 63
64 std::set<BrowserImagePathsFilter*> browser_image_filters_; 64 std::set<BrowserImagePathsFilter*> browser_image_filters_;
65 65
66 const GURL webstore_base_url_;
66 const GURL webstore_update_url_; 67 const GURL webstore_update_url_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient); 69 DISALLOW_COPY_AND_ASSIGN(TestExtensionsClient);
69 }; 70 };
70 71
71 } // namespace extensions 72 } // namespace extensions
72 73
73 #endif // EXTENSIONS_TEST_TEST_EXTENSIONS_CLIENT_H_ 74 #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