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 <memory> |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_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 "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 std::string authuser_; | 196 std::string authuser_; |
197 | 197 |
198 // The display name of the user for which this install happens, in the case | 198 // The display name of the user for which this install happens, in the case |
199 // of delegated installs. Empty for regular installs. | 199 // of delegated installs. Empty for regular installs. |
200 std::string delegated_username_; | 200 std::string delegated_username_; |
201 | 201 |
202 // The profile that the bundle should be installed in. | 202 // The profile that the bundle should be installed in. |
203 Profile* profile_; | 203 Profile* profile_; |
204 | 204 |
205 // The UI that shows the confirmation prompt. | 205 // The UI that shows the confirmation prompt. |
206 scoped_ptr<ExtensionInstallPrompt> install_ui_; | 206 std::unique_ptr<ExtensionInstallPrompt> install_ui_; |
207 | 207 |
208 ApprovalCallback approval_callback_; | 208 ApprovalCallback approval_callback_; |
209 base::Closure install_callback_; | 209 base::Closure install_callback_; |
210 | 210 |
211 base::WeakPtrFactory<BundleInstaller> weak_factory_; | 211 base::WeakPtrFactory<BundleInstaller> weak_factory_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); | 213 DISALLOW_COPY_AND_ASSIGN(BundleInstaller); |
214 }; | 214 }; |
215 | 215 |
216 } // namespace extensions | 216 } // namespace extensions |
217 | 217 |
218 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ | 218 #endif // CHROME_BROWSER_EXTENSIONS_BUNDLE_INSTALLER_H_ |
OLD | NEW |