Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chrome/browser/extensions/extension_installer.h

Issue 339103002: Update the EphemeralAppLauncher for use by the webstorePrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/requirements_checker.h" 14 #include "chrome/browser/extensions/requirements_checker.h"
15 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
16 16
17 class Profile; 17 class Profile;
18 18
19 namespace content { 19 namespace content {
20 class WebContents; 20 class WebContents;
21 } 21 }
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 25
26 // Holds common methods and data of extension installers. 26 // Holds common methods and data of extension installers.
27 //
28 // NOTE: This class is deprecated and has been replaced by
29 // ExtensionInstallChecker.
30 // TODO(tmdiep): CrxInstaller and UnpackedInstaller should be refactored to use
31 // this class (crbug.com/386404).
27 class ExtensionInstaller { 32 class ExtensionInstaller {
28 public: 33 public:
29 typedef base::Callback<void(std::vector<std::string>)> RequirementsCallback; 34 typedef base::Callback<void(std::vector<std::string>)> RequirementsCallback;
30 35
31 explicit ExtensionInstaller(Profile* profile); 36 explicit ExtensionInstaller(Profile* profile);
32 ~ExtensionInstaller(); 37 ~ExtensionInstaller();
33 38
34 // Called on the UI thread to start the requirements check on the extension 39 // Called on the UI thread to start the requirements check on the extension
35 void CheckRequirements(const RequirementsCallback& callback); 40 void CheckRequirements(const RequirementsCallback& callback);
36 41
(...skipping 23 matching lines...) Expand all
60 scoped_refptr<const Extension> extension_; 65 scoped_refptr<const Extension> extension_;
61 66
62 base::WeakPtrFactory<ExtensionInstaller> weak_ptr_factory_; 67 base::WeakPtrFactory<ExtensionInstaller> weak_ptr_factory_;
63 68
64 DISALLOW_COPY_AND_ASSIGN(ExtensionInstaller); 69 DISALLOW_COPY_AND_ASSIGN(ExtensionInstaller);
65 }; 70 };
66 71
67 } // namespace extensions 72 } // namespace extensions
68 73
69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALLER_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_checker_unittest.cc ('k') | chrome/browser/extensions/webstore_install_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698