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

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

Issue 16283002: Move Extension::UpdatesFromGallery to ManifestURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/manifest_url_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // Returns the Homepage URL for this extension. 23 // Returns the Homepage URL for this extension.
24 // If homepage_url was not specified in the manifest, 24 // If homepage_url was not specified in the manifest,
25 // this returns the Google Gallery URL. For third-party extensions, 25 // this returns the Google Gallery URL. For third-party extensions,
26 // this returns a blank GURL. 26 // this returns a blank GURL.
27 static const GURL GetHomepageURL(const Extension* extension); 27 static const GURL GetHomepageURL(const Extension* extension);
28 28
29 // Returns the Update URL for this extension. 29 // Returns the Update URL for this extension.
30 static const GURL& GetUpdateURL(const Extension* extension); 30 static const GURL& GetUpdateURL(const Extension* extension);
31 31
32 // Returns true if this extension's update URL is the extension gallery.
33 static bool UpdatesFromGallery(const Extension* extension);
34
32 // Returns the Options Page for this extension. 35 // Returns the Options Page for this extension.
33 static const GURL& GetOptionsPage(const Extension* extension); 36 static const GURL& GetOptionsPage(const Extension* extension);
34 37
35 // Returns the webstore page URL for this extension. 38 // Returns the webstore page URL for this extension.
36 static const GURL GetDetailsURL(const Extension* extension); 39 static const GURL GetDetailsURL(const Extension* extension);
37 }; 40 };
38 41
39 // A structure to hold the chrome URL overrides that may be specified 42 // A structure to hold the chrome URL overrides that may be specified
40 // in the manifest of an extension. 43 // in the manifest of an extension.
41 struct URLOverrides : public Extension::ManifestData { 44 struct URLOverrides : public Extension::ManifestData {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 125
123 private: 126 private:
124 virtual const std::vector<std::string> Keys() const OVERRIDE; 127 virtual const std::vector<std::string> Keys() const OVERRIDE;
125 128
126 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler); 129 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler);
127 }; 130 };
128 131
129 } // namespace extensions 132 } // namespace extensions
130 133
131 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_ 134 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_URL_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/manifest_url_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698