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

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

Issue 501085: Merge 34812 - Add the rightclick context menu for Browser actions and Page Ac... (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
79 // ExtensionInstallUI::Delegate 74 // ExtensionInstallUI::Delegate
80 virtual void InstallUIProceed(); 75 virtual void InstallUIProceed();
81 virtual void InstallUIAbort(); 76 virtual void InstallUIAbort();
82 77
83 private: 78 private:
84 CrxInstaller(const FilePath& source_file, 79 CrxInstaller(const FilePath& source_file,
85 const FilePath& install_directory, 80 const FilePath& install_directory,
86 bool delete_source, 81 bool delete_source,
87 ExtensionsService* frontend, 82 ExtensionsService* frontend,
88 ExtensionInstallUI* client); 83 ExtensionInstallUI* client);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // temp_dir_, so we don't have to delete it explicitly. 164 // temp_dir_, so we don't have to delete it explicitly.
170 FilePath unpacked_extension_root_; 165 FilePath unpacked_extension_root_;
171 166
172 // The unpacker we will use to unpack the extension. 167 // The unpacker we will use to unpack the extension.
173 SandboxedExtensionUnpacker* unpacker_; 168 SandboxedExtensionUnpacker* unpacker_;
174 169
175 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 170 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
176 }; 171 };
177 172
178 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 173 #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