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

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: crx_installer changes 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
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 const base::FilePath& install_directory);
213 212
214 // Called after OnUnpackSuccess as a last check to see whether the install 213 // Called after OnUnpackSuccess as a last check to see whether the install
215 // should complete. 214 // should complete.
216 CrxInstallerError AllowInstall(const Extension* extension); 215 CrxInstallerError AllowInstall(const Extension* extension);
217 216
218 // SandboxedUnpackerClient 217 // SandboxedUnpackerClient
219 virtual void OnUnpackFailure(const base::string16& error_message) OVERRIDE; 218 virtual void OnUnpackFailure(const base::string16& error_message) OVERRIDE;
220 virtual void OnUnpackSuccess(const base::FilePath& temp_dir, 219 virtual void OnUnpackSuccess(const base::FilePath& temp_dir,
221 const base::FilePath& extension_dir, 220 const base::FilePath& extension_dir,
222 const base::DictionaryValue* original_manifest, 221 const base::DictionaryValue* original_manifest,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // and needs additional permissions. 262 // and needs additional permissions.
264 void ConfirmReEnable(); 263 void ConfirmReEnable();
265 264
266 // The file we're installing. 265 // The file we're installing.
267 base::FilePath source_file_; 266 base::FilePath source_file_;
268 267
269 // The URL the file was downloaded from. 268 // The URL the file was downloaded from.
270 GURL download_url_; 269 GURL download_url_;
271 270
272 // The directory extensions are installed to. 271 // The directory extensions are installed to.
273 base::FilePath install_directory_; 272 const base::FilePath install_directory_;
274 273
275 // The location the installation came from (bundled with Chromium, registry, 274 // The location the installation came from (bundled with Chromium, registry,
276 // manual install, etc). This metadata is saved with the installation if 275 // manual install, etc). This metadata is saved with the installation if
277 // successful. Defaults to INTERNAL. 276 // successful. Defaults to INTERNAL.
278 Manifest::Location install_source_; 277 Manifest::Location install_source_;
279 278
280 // Indicates whether the user has already approved the extension to be 279 // Indicates whether the user has already approved the extension to be
281 // installed. If true, |expected_manifest_| and |expected_id_| must match 280 // installed. If true, |expected_manifest_| and |expected_id_| must match
282 // those of the CRX. 281 // those of the CRX.
283 bool approved_; 282 bool approved_;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 411
413 // Gives access to common methods and data of an extension installer. 412 // Gives access to common methods and data of an extension installer.
414 ExtensionInstaller installer_; 413 ExtensionInstaller installer_;
415 414
416 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 415 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
417 }; 416 };
418 417
419 } // namespace extensions 418 } // namespace extensions
420 419
421 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 420 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698