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

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

Issue 12319131: Update extensions with Drag-and-Drop in extension settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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 (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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void ReportFailureFromUIThread(const CrxInstallerError& error); 240 void ReportFailureFromUIThread(const CrxInstallerError& error);
241 void ReportSuccessFromFileThread(); 241 void ReportSuccessFromFileThread();
242 void ReportSuccessFromUIThread(); 242 void ReportSuccessFromUIThread();
243 void HandleIsBlacklistedResponse(const base::Closure& on_success, 243 void HandleIsBlacklistedResponse(const base::Closure& on_success,
244 bool success); 244 bool success);
245 void NotifyCrxInstallComplete(bool success); 245 void NotifyCrxInstallComplete(bool success);
246 246
247 // Deletes temporary directory and crx file if needed. 247 // Deletes temporary directory and crx file if needed.
248 void CleanupTempFiles(); 248 void CleanupTempFiles();
249 249
250 // Creates sequenced task runner for extension install file I/O operations. 250 // Checks whether a previous version of the given |extension| is already
251 scoped_refptr<base::SequencedTaskRunner> CreateSequencedTaskRunner(); 251 // installed. If exists, find out whether a prompt should be shown at the
252 // time of updating the |extension|.
253 void CheckExtensionExistsAlready(const Extension* extension);
252 254
253 // The file we're installing. 255 // The file we're installing.
254 base::FilePath source_file_; 256 base::FilePath source_file_;
255 257
256 // The URL the file was downloaded from. 258 // The URL the file was downloaded from.
257 GURL download_url_; 259 GURL download_url_;
258 260
259 // The directory extensions are installed to. 261 // The directory extensions are installed to.
260 base::FilePath install_directory_; 262 base::FilePath install_directory_;
261 263
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 bool has_requirement_errors_; 388 bool has_requirement_errors_;
387 389
388 bool install_wait_for_idle_; 390 bool install_wait_for_idle_;
389 391
390 // Sequenced task runner where file I/O operations will be performed. 392 // Sequenced task runner where file I/O operations will be performed.
391 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_; 393 scoped_refptr<base::SequencedTaskRunner> installer_task_runner_;
392 394
393 // Used to show the install dialog. 395 // Used to show the install dialog.
394 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_; 396 ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_;
395 397
398 // Whether to show update prompt.
399 bool show_update_prompt_;
400
396 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 401 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
397 }; 402 };
398 403
399 } // namespace extensions 404 } // namespace extensions
400 405
401 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 406 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698