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

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

Issue 174036: Get rid of the extension's "Current Version" file. (Closed)
Patch Set: merge conflicts Created 11 years, 4 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.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // The message loop to use for file IO. 131 // The message loop to use for file IO.
132 MessageLoop* file_loop_; 132 MessageLoop* file_loop_;
133 133
134 // The message loop the UI is running on. 134 // The message loop the UI is running on.
135 MessageLoop* ui_loop_; 135 MessageLoop* ui_loop_;
136 136
137 // The extension we're installing. We own this and either pass it off to 137 // The extension we're installing. We own this and either pass it off to
138 // ExtensionsService on success, or delete it on failure. 138 // ExtensionsService on success, or delete it on failure.
139 scoped_ptr<Extension> extension_; 139 scoped_ptr<Extension> extension_;
140 140
141 // If non-empty, contains the current version of the extension we're
142 // installing (for upgrades).
143 std::string current_version_;
144
141 // The icon we will display in the installation UI, if any. 145 // The icon we will display in the installation UI, if any.
142 scoped_ptr<SkBitmap> install_icon_; 146 scoped_ptr<SkBitmap> install_icon_;
143 147
144 // The temp directory extension resources were unpacked to. We own this and 148 // The temp directory extension resources were unpacked to. We own this and
145 // must delete it when we are done with it. 149 // must delete it when we are done with it.
146 FilePath temp_dir_; 150 FilePath temp_dir_;
147 151
148 // The frontend we will report results back to. 152 // The frontend we will report results back to.
149 scoped_refptr<ExtensionsService> frontend_; 153 scoped_refptr<ExtensionsService> frontend_;
150 154
151 // The client we will work with to do the installation. This can be NULL, in 155 // The client we will work with to do the installation. This can be NULL, in
152 // which case the install is silent. 156 // which case the install is silent.
153 scoped_ptr<ExtensionInstallUI> client_; 157 scoped_ptr<ExtensionInstallUI> client_;
154 158
155 // The root of the unpacked extension directory. This is a subdirectory of 159 // The root of the unpacked extension directory. This is a subdirectory of
156 // temp_dir_, so we don't have to delete it explicitly. 160 // temp_dir_, so we don't have to delete it explicitly.
157 FilePath unpacked_extension_root_; 161 FilePath unpacked_extension_root_;
158 162
159 // The unpacker we will use to unpack the extension. 163 // The unpacker we will use to unpack the extension.
160 SandboxedExtensionUnpacker* unpacker_; 164 SandboxedExtensionUnpacker* unpacker_;
161 165
162 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 166 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
163 }; 167 };
164 168
165 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 169 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698