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

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

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comemnts in #5 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 | Annotate | Revision Log
OLDNEW
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_CRX_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 CrxInstaller(base::WeakPtr<ExtensionService> service_weak, 202 CrxInstaller(base::WeakPtr<ExtensionService> service_weak,
203 scoped_ptr<ExtensionInstallPrompt> client, 203 scoped_ptr<ExtensionInstallPrompt> client,
204 const WebstoreInstaller::Approval* approval); 204 const WebstoreInstaller::Approval* approval);
205 virtual ~CrxInstaller(); 205 virtual ~CrxInstaller();
206 206
207 // Converts the source user script to an extension. 207 // Converts the source user script to an extension.
208 void ConvertUserScriptOnFileThread(); 208 void ConvertUserScriptOnFileThread();
209 209
210 // Converts the source web app to an extension. 210 // Converts the source web app to an extension.
211 void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app, 211 void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app,
212 int creation_flags,
212 const base::FilePath& install_directory); 213 const base::FilePath& install_directory);
213 214
214 // Called after OnUnpackSuccess as a last check to see whether the install 215 // Called after OnUnpackSuccess as a last check to see whether the install
215 // should complete. 216 // should complete.
216 CrxInstallerError AllowInstall(const Extension* extension); 217 CrxInstallerError AllowInstall(const Extension* extension);
217 218
218 // SandboxedUnpackerClient 219 // SandboxedUnpackerClient
219 virtual void OnUnpackFailure(const base::string16& error_message) OVERRIDE; 220 virtual void OnUnpackFailure(const base::string16& error_message) OVERRIDE;
220 virtual void OnUnpackSuccess(const base::FilePath& temp_dir, 221 virtual void OnUnpackSuccess(const base::FilePath& temp_dir,
221 const base::FilePath& extension_dir, 222 const base::FilePath& extension_dir,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 413
413 // Gives access to common methods and data of an extension installer. 414 // Gives access to common methods and data of an extension installer.
414 ExtensionInstaller installer_; 415 ExtensionInstaller installer_;
415 416
416 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 417 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
417 }; 418 };
418 419
419 } // namespace extensions 420 } // namespace extensions
420 421
421 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 422 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698