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

Side by Side Diff: chrome/common/extensions/manifest_url_info.h

Issue 11726002: Move the parsing of 'update_url' & 'options_page' URLs out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: Created 7 years, 11 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 (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_INFO_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_URL_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_URL_INFO_H_ 6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_URL_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class Extension; 14 class Extension;
15 15
16 struct ManifestURLInfo : public Extension::ManifestData { 16 struct ManifestURLInfo : public Extension::ManifestData {
17 17
18 // URL parsed from the extension manifest file. 18 // URL parsed from the extension manifest file.
19 GURL url_; 19 GURL url_;
20 20
21 // Get the URL associated with "devtools_page" manifest key. 21 // Get the URL associated with "devtools_page" manifest key.
22 static const GURL& GetDevToolsPage(const Extension* extension); 22 static const GURL& GetDevToolsPage(const Extension* extension);
23 23
24 // Returns the Homepage URL for this extension. If homepage_url was not 24 // Returns the Homepage URL for this extension. If homepage_url was not
25 // specified in the manifest, this returns the Google Gallery URL. For 25 // specified in the manifest, this returns the Google Gallery URL. For
26 // third-party extensions, this returns a blank GURL. 26 // third-party extensions, this returns a blank GURL.
27 static const GURL GetHomepageURL(const Extension* extension); 27 static const GURL GetHomepageURL(const Extension* extension);
28
29 // Get the URL associated with "update_url" manifest key.
30 // This is the URL for fetching an update manifest.
31 static const GURL& GetUpdateURL(const Extension* extension);
32
33 // Get the URL associated with "options_page" manifest key.
34 // Optional URL to a page for setting options/preferences.
35 static const GURL& GetOptionsPage(const Extension* extension);
28 }; 36 };
29 37
30 } // namespace extensions 38 } // namespace extensions
31 39
32 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_INFO_H_ 40 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698