| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 // Records that a fatal error was caught and suppressed. It is expected that | 100 // Records that a fatal error was caught and suppressed. It is expected that |
| 101 // embedders will only do so if ShouldSuppressFatalErrors at some point | 101 // embedders will only do so if ShouldSuppressFatalErrors at some point |
| 102 // returned true. | 102 // returned true. |
| 103 virtual void RecordDidSuppressFatalError() = 0; | 103 virtual void RecordDidSuppressFatalError() = 0; |
| 104 | 104 |
| 105 // Returns the base webstore URL prefix. | 105 // Returns the base webstore URL prefix. |
| 106 virtual std::string GetWebstoreBaseURL() const = 0; | 106 virtual std::string GetWebstoreBaseURL() const = 0; |
| 107 | 107 |
| 108 // Returns the URL to use for update manifest queries. | 108 // Returns the URL to use for update manifest queries. |
| 109 virtual std::string GetWebstoreUpdateURL() const = 0; | 109 virtual const GURL& GetWebstoreUpdateURL() const = 0; |
| 110 | 110 |
| 111 // Returns a flag indicating whether or not a given URL is a valid | 111 // Returns a flag indicating whether or not a given URL is a valid |
| 112 // extension blacklist URL. | 112 // extension blacklist URL. |
| 113 virtual bool IsBlacklistUpdateURL(const GURL& url) const = 0; | 113 virtual bool IsBlacklistUpdateURL(const GURL& url) const = 0; |
| 114 | 114 |
| 115 // Returns the set of file paths corresponding to any images within an | 115 // Returns the set of file paths corresponding to any images within an |
| 116 // extension's contents that may be displayed directly within the browser UI | 116 // extension's contents that may be displayed directly within the browser UI |
| 117 // or WebUI, such as icons or theme images. This set of paths is used by the | 117 // or WebUI, such as icons or theme images. This set of paths is used by the |
| 118 // extension unpacker to determine which assets should be transcoded safely | 118 // extension unpacker to determine which assets should be transcoded safely |
| 119 // within the utility sandbox. | 119 // within the utility sandbox. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 135 // Return the extensions client. | 135 // Return the extensions client. |
| 136 static ExtensionsClient* Get(); | 136 static ExtensionsClient* Get(); |
| 137 | 137 |
| 138 // Initialize the extensions system with this extensions client. | 138 // Initialize the extensions system with this extensions client. |
| 139 static void Set(ExtensionsClient* client); | 139 static void Set(ExtensionsClient* client); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace extensions | 142 } // namespace extensions |
| 143 | 143 |
| 144 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 144 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |