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

Side by Side Diff: extensions/common/extensions_client.h

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0; 90 virtual base::StringPiece GetAPISchema(const std::string& name) const = 0;
91 91
92 // Register non-generated API schema resources with the global ExtensionAPI. 92 // Register non-generated API schema resources with the global ExtensionAPI.
93 // Called when the ExtensionAPI is lazily initialized. 93 // Called when the ExtensionAPI is lazily initialized.
94 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const = 0; 94 virtual void RegisterAPISchemaResources(ExtensionAPI* api) const = 0;
95 95
96 // Determines if certain fatal extensions errors should be surpressed 96 // Determines if certain fatal extensions errors should be surpressed
97 // (i.e., only logged) or allowed (i.e., logged before crashing). 97 // (i.e., only logged) or allowed (i.e., logged before crashing).
98 virtual bool ShouldSuppressFatalErrors() const = 0; 98 virtual bool ShouldSuppressFatalErrors() const = 0;
99 99
100 // Returns the base webstore URL prefix.
101 virtual std::string GetWebstoreBaseURL() const = 0;
102
103 // Returns the URL to use for update manifest queries.
104 virtual std::string GetWebstoreUpdateURL() const = 0;
105
106 // Returns a flag indicating whether or not a given URL is a valid
107 // extension blacklist URL.
108 virtual bool IsBlacklistUpdateURL(const GURL& url) const = 0;
109
100 // Return the extensions client. 110 // Return the extensions client.
101 static ExtensionsClient* Get(); 111 static ExtensionsClient* Get();
102 112
103 // Initialize the extensions system with this extensions client. 113 // Initialize the extensions system with this extensions client.
104 static void Set(ExtensionsClient* client); 114 static void Set(ExtensionsClient* client);
105 }; 115 };
106 116
107 } // namespace extensions 117 } // namespace extensions
108 118
109 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 119 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698