| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| 11 class InstallFunction : public SyncExtensionFunction { |
| 12 public: |
| 13 static void SetTestingInstallBaseUrl(const char* testing_install_base_url); |
| 14 |
| 15 protected: |
| 16 ~InstallFunction() {} |
| 17 virtual bool RunImpl(); |
| 18 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.install"); |
| 19 }; |
| 20 |
| 11 class GetSyncLoginFunction : public SyncExtensionFunction { | 21 class GetSyncLoginFunction : public SyncExtensionFunction { |
| 12 virtual bool RunImpl(); | 22 virtual bool RunImpl(); |
| 13 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getSyncLogin"); | 23 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getSyncLogin"); |
| 14 }; | 24 }; |
| 15 | 25 |
| 16 class GetStoreLoginFunction : public SyncExtensionFunction { | 26 class GetStoreLoginFunction : public SyncExtensionFunction { |
| 17 virtual bool RunImpl(); | 27 virtual bool RunImpl(); |
| 18 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin"); | 28 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.getStoreLogin"); |
| 19 }; | 29 }; |
| 20 | 30 |
| 21 class SetStoreLoginFunction : public SyncExtensionFunction { | 31 class SetStoreLoginFunction : public SyncExtensionFunction { |
| 22 virtual bool RunImpl(); | 32 virtual bool RunImpl(); |
| 23 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin"); | 33 DECLARE_EXTENSION_FUNCTION_NAME("webstorePrivate.setStoreLogin"); |
| 24 }; | 34 }; |
| 25 | 35 |
| 26 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ | 36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBSTORE_PRIVATE_API_H__ |
| OLD | NEW |