| 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_WEBSTORE_STANDALONE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "chrome/browser/extensions/active_install_data.h" | 14 #include "chrome/browser/extensions/active_install_data.h" |
| 15 #include "chrome/browser/extensions/extension_install_prompt.h" | 15 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 16 #include "chrome/browser/extensions/webstore_data_fetcher_delegate.h" | 16 #include "chrome/browser/extensions/webstore_data_fetcher_delegate.h" |
| 17 #include "chrome/browser/extensions/webstore_install_helper.h" | 17 #include "chrome/browser/extensions/webstore_install_helper.h" |
| 18 #include "chrome/browser/extensions/webstore_installer.h" | 18 #include "chrome/browser/extensions/webstore_installer.h" |
| 19 #include "chrome/common/extensions/webstore_install_result.h" | 19 #include "chrome/common/extensions/webstore_install_result.h" |
| 20 #include "net/url_request/url_fetcher_delegate.h" | 20 #include "net/url_request/url_fetcher_delegate.h" |
| 21 #include "third_party/skia/include/core/SkBitmap.h" | 21 #include "third_party/skia/include/core/SkBitmap.h" |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class DictionaryValue; | 26 class DictionaryValue; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace net { | |
| 30 class URLFetcher; | |
| 31 } | |
| 32 | |
| 33 namespace extensions { | 29 namespace extensions { |
| 34 class Extension; | 30 class Extension; |
| 35 class WebstoreDataFetcher; | 31 class WebstoreDataFetcher; |
| 36 | 32 |
| 37 // A a purely abstract base for concrete classes implementing various types of | 33 // A a purely abstract base for concrete classes implementing various types of |
| 38 // standalone installs: | 34 // standalone installs: |
| 39 // 1) Downloads and parses metadata from the webstore. | 35 // 1) Downloads and parses metadata from the webstore. |
| 40 // 2) Optionally shows an install dialog. | 36 // 2) Optionally shows an install dialog. |
| 41 // 3) Starts download once the user confirms (if confirmation was requested). | 37 // 3) Starts download once the user confirms (if confirmation was requested). |
| 42 // 4) Optionally shows a post-install UI. | 38 // 4) Optionally shows a post-install UI. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Created by ShowInstallUI() when a prompt is shown (if | 242 // Created by ShowInstallUI() when a prompt is shown (if |
| 247 // the implementor returns a non-NULL in CreateInstallPrompt()). | 243 // the implementor returns a non-NULL in CreateInstallPrompt()). |
| 248 scoped_refptr<Extension> localized_extension_for_display_; | 244 scoped_refptr<Extension> localized_extension_for_display_; |
| 249 | 245 |
| 250 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); | 246 DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreStandaloneInstaller); |
| 251 }; | 247 }; |
| 252 | 248 |
| 253 } // namespace extensions | 249 } // namespace extensions |
| 254 | 250 |
| 255 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ | 251 #endif // CHROME_BROWSER_EXTENSIONS_WEBSTORE_STANDALONE_INSTALLER_H_ |
| OLD | NEW |