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

Side by Side Diff: extensions/shell/common/shell_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_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "extensions/common/extensions_client.h" 10 #include "extensions/common/extensions_client.h"
(...skipping 23 matching lines...) Expand all
34 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override; 34 void SetScriptingWhitelist(const ScriptingWhitelist& whitelist) override;
35 const ScriptingWhitelist& GetScriptingWhitelist() const override; 35 const ScriptingWhitelist& GetScriptingWhitelist() const override;
36 URLPatternSet GetPermittedChromeSchemeHosts( 36 URLPatternSet GetPermittedChromeSchemeHosts(
37 const Extension* extension, 37 const Extension* extension,
38 const APIPermissionSet& api_permissions) const override; 38 const APIPermissionSet& api_permissions) const override;
39 bool IsScriptableURL(const GURL& url, std::string* error) const override; 39 bool IsScriptableURL(const GURL& url, std::string* error) const override;
40 bool IsAPISchemaGenerated(const std::string& name) const override; 40 bool IsAPISchemaGenerated(const std::string& name) const override;
41 base::StringPiece GetAPISchema(const std::string& name) const override; 41 base::StringPiece GetAPISchema(const std::string& name) const override;
42 bool ShouldSuppressFatalErrors() const override; 42 bool ShouldSuppressFatalErrors() const override;
43 void RecordDidSuppressFatalError() override; 43 void RecordDidSuppressFatalError() override;
44 std::string GetWebstoreBaseURL() const override; 44 const GURL& GetWebstoreBaseURL() const override;
45 const GURL& GetWebstoreUpdateURL() const override; 45 const GURL& GetWebstoreUpdateURL() const override;
46 bool IsBlacklistUpdateURL(const GURL& url) const override; 46 bool IsBlacklistUpdateURL(const GURL& url) const override;
47 47
48 private: 48 private:
49 const ExtensionsAPIPermissions extensions_api_permissions_; 49 const ExtensionsAPIPermissions extensions_api_permissions_;
50 50
51 ScriptingWhitelist scripting_whitelist_; 51 ScriptingWhitelist scripting_whitelist_;
52 52
53 const GURL webstore_base_url_;
53 const GURL webstore_update_url_; 54 const GURL webstore_update_url_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient); 56 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
56 }; 57 };
57 58
58 } // namespace extensions 59 } // namespace extensions
59 60
60 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 61 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/common/extensions_client.h ('k') | extensions/shell/common/shell_extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698