OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/extension.h" | 10 #include "extensions/common/extension.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Returns the DevTools Page for this extension. | 24 // Returns the DevTools Page for this extension. |
25 static const GURL& GetDevToolsPage(const Extension* extension); | 25 static const GURL& GetDevToolsPage(const Extension* extension); |
26 | 26 |
27 // Returns the Homepage URL for this extension. | 27 // Returns the Homepage URL for this extension. |
28 // If homepage_url was not specified in the manifest, | 28 // If homepage_url was not specified in the manifest, |
29 // this returns the Google Gallery URL. For third-party extensions, | 29 // this returns the Google Gallery URL. For third-party extensions, |
30 // this returns a blank GURL. | 30 // this returns a blank GURL. |
31 static const GURL GetHomepageURL(const Extension* extension); | 31 static const GURL GetHomepageURL(const Extension* extension); |
32 | 32 |
| 33 // Returns true if the extension specified a valid home page url in the |
| 34 // manifest. |
| 35 static bool SpecifiedHomepageURL(const Extension* extension); |
| 36 |
33 // Returns the Update URL for this extension. | 37 // Returns the Update URL for this extension. |
34 static const GURL& GetUpdateURL(const Extension* extension); | 38 static const GURL& GetUpdateURL(const Extension* extension); |
35 | 39 |
36 // Returns true if this extension's update URL is the extension gallery. | 40 // Returns true if this extension's update URL is the extension gallery. |
37 static bool UpdatesFromGallery(const Extension* extension); | 41 static bool UpdatesFromGallery(const Extension* extension); |
38 static bool UpdatesFromGallery(const base::DictionaryValue* manifest); | 42 static bool UpdatesFromGallery(const base::DictionaryValue* manifest); |
39 | 43 |
40 // Returns the Options Page for this extension. | 44 // Returns the Options Page for this extension. |
41 static const GURL& GetOptionsPage(const Extension* extension); | 45 static const GURL& GetOptionsPage(const Extension* extension); |
42 | 46 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 158 |
155 private: | 159 private: |
156 virtual const std::vector<std::string> Keys() const OVERRIDE; | 160 virtual const std::vector<std::string> Keys() const OVERRIDE; |
157 | 161 |
158 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler); | 162 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler); |
159 }; | 163 }; |
160 | 164 |
161 } // namespace extensions | 165 } // namespace extensions |
162 | 166 |
163 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ | 167 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ |
OLD | NEW |