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

Side by Side Diff: chrome/browser/download/download_crx_util.h

Issue 9999041: Regression test for packing and installing an extension from an URL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: VLOG -> LOG(ERROR) Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Download code which handles CRX files (extensions, themes, apps, ...). 5 // Download code which handles CRX files (extensions, themes, apps, ...).
6 6
7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ 7 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_
8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ 8 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_
9 9
10 #pragma once 10 #pragma once
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h"
13 14
14 class CrxInstaller; 15 class CrxInstaller;
15 class ExtensionInstallUI; 16 class ExtensionInstallUI;
16 class Profile; 17 class Profile;
17 18
18 namespace content { 19 namespace content {
19 class DownloadItem; 20 class DownloadItem;
20 } 21 }
21 22
22 namespace download_crx_util { 23 namespace download_crx_util {
23 24
24 // Allow tests to install a mock extension install UI object, to fake 25 // Allow tests to install a mock extension install UI object, to fake
25 // user clicks on the permissions dialog. Each installed mock object 26 // user clicks on the permissions dialog. Each installed mock object
26 // is only used once. If you want to return a mock for two different 27 // is only used once. If you want to return a mock for two different
27 // installs, you need to call this function once before the first 28 // installs, you need to call this function once before the first
28 // install, and again after the first install and before the second. 29 // install, and again after the first install and before the second.
29 void SetMockInstallUIForTesting(ExtensionInstallUI* mock_ui); 30 void SetMockInstallUIForTesting(ExtensionInstallUI* mock_ui);
30 31
31 // Start installing a downloaded item item as a CRX (extension, theme, app, 32 // Start installing a downloaded item item as a CRX (extension, theme, app,
32 // ...). The installer does work on the file thread, so the installation 33 // ...). The installer does work on the file thread, so the installation
33 // is not complete when this function returns. Returns the object managing 34 // is not complete when this function returns. Returns the object managing
34 // the installation. 35 // the installation.
35 scoped_refptr<CrxInstaller> OpenChromeExtension( 36 scoped_refptr<CrxInstaller> OpenChromeExtension(
36 Profile* profile, 37 Profile* profile,
37 const content::DownloadItem& download_item); 38 const content::DownloadItem& download_item);
38 39
39 } // namespace download_crx_util 40 } // namespace download_crx_util
40 41
41 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_ 42 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CRX_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698