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_BUNDLE_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/linked_ptr.h" | 15 #include "base/memory/linked_ptr.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "chrome/browser/extensions/extension_install_prompt.h" | 19 #include "chrome/browser/extensions/extension_install_prompt.h" |
20 #include "chrome/browser/extensions/webstore_install_helper.h" | 20 #include "chrome/browser/extensions/webstore_install_helper.h" |
21 #include "chrome/browser/extensions/webstore_installer.h" | 21 #include "chrome/browser/extensions/webstore_installer.h" |
22 #include "chrome/browser/ui/browser_list_observer.h" | 22 #include "chrome/browser/ui/browser_list_observer.h" |
23 #include "chrome/browser/ui/host_desktop.h" | |
24 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
25 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
26 #include "url/gurl.h" | 25 #include "url/gurl.h" |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class DictionaryValue; | 28 class DictionaryValue; |
30 } // namespace base | 29 } // namespace base |
31 | 30 |
32 namespace content { | 31 namespace content { |
33 class WebContents; | 32 class WebContents; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 SkBitmap icon_; | 191 SkBitmap icon_; |
193 | 192 |
194 // The authuser query parameter value which should be used with CRX download | 193 // The authuser query parameter value which should be used with CRX download |
195 // requests. May be empty. | 194 // requests. May be empty. |
196 std::string authuser_; | 195 std::string authuser_; |
197 | 196 |
198 // The display name of the user for which this install happens, in the case | 197 // The display name of the user for which this install happens, in the case |
199 // of delegated installs. Empty for regular installs. | 198 // of delegated installs. Empty for regular installs. |
200 std::string delegated_username_; | 199 std::string delegated_username_; |
201 | 200 |
202 // The desktop type of the browser. | |
203 chrome::HostDesktopType host_desktop_type_; | |
204 | |
205 // The profile that the bundle should be installed in. | 201 // The profile that the bundle should be installed in. |
206 Profile* profile_; | 202 Profile* profile_; |
207 | 203 |
208 // The UI that shows the confirmation prompt. | 204 // The UI that shows the confirmation prompt. |
209 scoped_ptr<ExtensionInstallPrompt> install_ui_; | 205 scoped_ptr<ExtensionInstallPrompt> install_ui_; |
210 | 206 |
211 ApprovalCallback approval_callback_; | 207 ApprovalCallback approval_callback_; |
212 base::Closure install_callback_; | 208 base::Closure install_callback_; |
213 | 209 |
214 base::WeakPtrFactory<BundleInstaller> weak_factory_; | 210 base::WeakPtrFactory<BundleInstaller> weak_factory_; |
215 | 211 |
216 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); | 212 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); |
217 }; | 213 }; |
218 | 214 |
219 } // namespace extensions | 215 } // namespace extensions |
220 | 216 |
221 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 217 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
OLD | NEW |