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_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h" | 11 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h" |
12 #include "chrome/browser/extensions/active_install_data.h" | 12 #include "chrome/browser/extensions/active_install_data.h" |
13 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 13 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
14 #include "chrome/browser/extensions/extension_install_prompt.h" | 14 #include "chrome/browser/extensions/extension_install_prompt.h" |
15 #include "chrome/browser/extensions/webstore_install_helper.h" | 15 #include "chrome/browser/extensions/webstore_install_helper.h" |
16 #include "chrome/browser/extensions/webstore_installer.h" | 16 #include "chrome/browser/extensions/webstore_installer.h" |
17 #include "chrome/common/extensions/api/webstore_private.h" | 17 #include "chrome/common/extensions/api/webstore_private.h" |
18 #include "chrome/common/extensions/webstore_install_result.h" | 18 #include "chrome/common/extensions/webstore_install_result.h" |
19 #include "extensions/browser/extension_function.h" | 19 #include "extensions/browser/extension_function.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
21 | 21 |
22 class GPUFeatureChecker; | 22 class GPUFeatureChecker; |
23 class GURL; | |
24 | |
25 namespace chrome { | |
26 class BitmapFetcher; | |
27 } // namespace chrome | |
28 | 23 |
29 namespace extensions { | 24 namespace extensions { |
30 | 25 |
31 class Extension; | 26 class Extension; |
32 | 27 |
33 class WebstorePrivateApi { | 28 class WebstorePrivateApi { |
34 public: | 29 public: |
35 // Allows you to override the WebstoreInstaller delegate for testing. | 30 // Allows you to override the WebstoreInstaller delegate for testing. |
36 static void SetWebstoreInstallerDelegateForTesting( | 31 static void SetWebstoreInstallerDelegateForTesting( |
37 WebstoreInstaller::Delegate* delegate); | 32 WebstoreInstaller::Delegate* delegate); |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 ExtensionFunction::ResponseAction Run() override; | 298 ExtensionFunction::ResponseAction Run() override; |
304 | 299 |
305 ExtensionFunction::ResponseValue BuildResponse(bool result); | 300 ExtensionFunction::ResponseValue BuildResponse(bool result); |
306 | 301 |
307 ChromeExtensionFunctionDetails chrome_details_; | 302 ChromeExtensionFunctionDetails chrome_details_; |
308 }; | 303 }; |
309 | 304 |
310 } // namespace extensions | 305 } // namespace extensions |
311 | 306 |
312 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ | 307 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_PRIVATE_WEBSTORE_PRIVATE_API_H
_ |
OLD | NEW |