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

Unified Diff: chrome/common/extensions/extension_constants.h

Issue 7621032: Initial inline web store install bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants.h
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index 983e0b716c22a08c7bb9bc8851ad25391a0a26cb..49fe2dd4586182a95022ebc683c0c959c4019f48 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -6,6 +6,8 @@
#define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
#pragma once
+#include <string>
+
#include "base/basictypes.h"
// Keys used in JSON representation of extensions.
@@ -416,6 +418,18 @@ namespace extension_misc {
UNLOAD_REASON_UPDATE, // Extension is being updated to a newer version.
UNLOAD_REASON_UNINSTALL, // Extension is being uninstalled.
};
+
+ // Returns the URL prefix for the extension/apps gallery. Can be set via the
+ // --apps-gallery-url switch. The URL returned will not contain a trailing
+ // slash. Do not use this as a prefix/extent for the store. Instead see
+ // ExtensionService::GetWebStoreApp or
+ // ExtensionService::IsDownloadFromGallery
+ std::string GetWebstoreLaunchURL();
+
+ // Returns the URL prefix for an item in the extension/app gallery. This URL
+ // will contain a trailing slash and should be concatenated with an item ID
+ // to get the item detail URL.
+ std::string GetWebstoreItemDetailURLPrefix();
} // extension_misc
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698