| 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_EXTENSION_CONSTANTS_H_ |    5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 
|    6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |    6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 
|    7 #pragma once |    7 #pragma once | 
|    8  |    8  | 
|    9 #include <string> |    9 #include <string> | 
|   10  |   10  | 
|   11 #include "base/basictypes.h" |   11 #include "base/basictypes.h" | 
|   12 #include "googleurl/src/gurl.h" |   12 #include "googleurl/src/gurl.h" | 
|   13  |   13  | 
|   14 namespace extension_urls { |   14 namespace extension_urls { | 
|   15   // Returns the URL prefix for the extension/apps gallery. Can be set via the |   15   // Returns the URL prefix for the extension/apps gallery. Can be set via the | 
|   16   // --apps-gallery-url switch. The URL returned will not contain a trailing |   16   // --apps-gallery-url switch. The URL returned will not contain a trailing | 
|   17   // slash. Do not use this as a prefix/extent for the store. |   17   // slash. Do not use this as a prefix/extent for the store.  Instead see | 
 |   18   // ExtensionService::GetWebStoreApp or | 
 |   19   // ExtensionService::IsDownloadFromGallery | 
|   18   std::string GetWebstoreLaunchURL(); |   20   std::string GetWebstoreLaunchURL(); | 
|   19  |   21  | 
|   20   // Returns the URL prefix for an item in the extension/app gallery. This URL |   22   // Returns the URL prefix for an item in the extension/app gallery. This URL | 
|   21   // will contain a trailing slash and should be concatenated with an item ID |   23   // will contain a trailing slash and should be concatenated with an item ID | 
|   22   // to get the item detail URL. |   24   // to get the item detail URL. | 
|   23   std::string GetWebstoreItemDetailURLPrefix(); |   25   std::string GetWebstoreItemDetailURLPrefix(); | 
|   24  |   26  | 
|   25   // Returns the URL leading to a search page for Web Intents. The search is |   27   // Returns the URL leading to a search page for Web Intents. The search is | 
|   26   // specific to intents with the given |action| and |type|. |   28   // specific to intents with the given |action| and |type|. | 
|   27   GURL GetWebstoreIntentQueryURL(const std::string& action, |   29   GURL GetWebstoreIntentQueryURL(const std::string& action, | 
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  250   extern const char kAppStateRunning[]; |  252   extern const char kAppStateRunning[]; | 
|  251   extern const char kAppStateCannotRun[]; |  253   extern const char kAppStateCannotRun[]; | 
|  252   extern const char kAppStateReadyToRun[]; |  254   extern const char kAppStateReadyToRun[]; | 
|  253  |  255  | 
|  254   // Error indicating that the app notifications API is not accessible by split |  256   // Error indicating that the app notifications API is not accessible by split | 
|  255   // mode extensions in incognito windows. |  257   // mode extensions in incognito windows. | 
|  256   extern const char kAppNotificationsIncognitoError[]; |  258   extern const char kAppNotificationsIncognitoError[]; | 
|  257 }  // extension_misc |  259 }  // extension_misc | 
|  258  |  260  | 
|  259 #endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ |  261 #endif  // CHROME_COMMON_EXTENSIONS_EXTENSION_CONSTANTS_H_ | 
| OLD | NEW |