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

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

Issue 501130: Revert 34858 - Merge 34812 Add the rightclick context menu for Browser actio... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 years 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/crx_installer.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/file_path.h" 10 #include "base/file_path.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Starts the installation of the user script file in |source_file| into 64 // Starts the installation of the user script file in |source_file| into
65 // |install_directory|. The script will be converted to an extension. 65 // |install_directory|. The script will be converted to an extension.
66 // See Start() for argument descriptions. 66 // See Start() for argument descriptions.
67 static void InstallUserScript(const FilePath& source_file, 67 static void InstallUserScript(const FilePath& source_file,
68 const GURL& original_url, 68 const GURL& original_url,
69 const FilePath& install_directory, 69 const FilePath& install_directory,
70 bool delete_source, 70 bool delete_source,
71 ExtensionsService* frontend, 71 ExtensionsService* frontend,
72 ExtensionInstallUI* client); 72 ExtensionInstallUI* client);
73 73
74 // Given the path to the large icon from an extension, read it if present and
75 // decode it into result.
76 static void DecodeInstallIcon(const FilePath& large_icon_path,
77 scoped_ptr<SkBitmap>* result);
78
74 // ExtensionInstallUI::Delegate 79 // ExtensionInstallUI::Delegate
75 virtual void InstallUIProceed(); 80 virtual void InstallUIProceed();
76 virtual void InstallUIAbort(); 81 virtual void InstallUIAbort();
77 82
78 private: 83 private:
79 CrxInstaller(const FilePath& source_file, 84 CrxInstaller(const FilePath& source_file,
80 const FilePath& install_directory, 85 const FilePath& install_directory,
81 bool delete_source, 86 bool delete_source,
82 ExtensionsService* frontend, 87 ExtensionsService* frontend,
83 ExtensionInstallUI* client); 88 ExtensionInstallUI* client);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // temp_dir_, so we don't have to delete it explicitly. 169 // temp_dir_, so we don't have to delete it explicitly.
165 FilePath unpacked_extension_root_; 170 FilePath unpacked_extension_root_;
166 171
167 // The unpacker we will use to unpack the extension. 172 // The unpacker we will use to unpack the extension.
168 SandboxedExtensionUnpacker* unpacker_; 173 SandboxedExtensionUnpacker* unpacker_;
169 174
170 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 175 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
171 }; 176 };
172 177
173 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 178 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698