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

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

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void set_install_cause(extension_misc::CrxInstallCause install_cause) { 177 void set_install_cause(extension_misc::CrxInstallCause install_cause) {
178 install_cause_ = install_cause; 178 install_cause_ = install_cause;
179 } 179 }
180 180
181 void set_page_ordinal(const StringOrdinal& page_ordinal) { 181 void set_page_ordinal(const StringOrdinal& page_ordinal) {
182 page_ordinal_ = page_ordinal; 182 page_ordinal_ = page_ordinal;
183 } 183 }
184 184
185 Profile* profile() { return profile_; } 185 Profile* profile() { return profile_; }
186 186
187 void set_use_utility_process(bool value) { use_utility_process_ = value; }
188
187 private: 189 private:
188 friend class ExtensionUpdaterTest; 190 friend class ExtensionUpdaterTest;
189 191
190 CrxInstaller(base::WeakPtr<ExtensionService> frontend_weak, 192 CrxInstaller(base::WeakPtr<ExtensionService> frontend_weak,
191 ExtensionInstallUI* client); 193 ExtensionInstallUI* client);
192 virtual ~CrxInstaller(); 194 virtual ~CrxInstaller();
193 195
194 // Converts the source user script to an extension. 196 // Converts the source user script to an extension.
195 void ConvertUserScriptOnFileThread(); 197 void ConvertUserScriptOnFileThread();
196 198
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 std::string original_mime_type_; 324 std::string original_mime_type_;
323 325
324 // What caused this install? Used only for histograms that report 326 // What caused this install? Used only for histograms that report
325 // on failure rates, broken down by the cause of the install. 327 // on failure rates, broken down by the cause of the install.
326 extension_misc::CrxInstallCause install_cause_; 328 extension_misc::CrxInstallCause install_cause_;
327 329
328 // Creation flags to use for the extension. These flags will be used 330 // Creation flags to use for the extension. These flags will be used
329 // when calling Extenion::Create() by the crx installer. 331 // when calling Extenion::Create() by the crx installer.
330 int creation_flags_; 332 int creation_flags_;
331 333
334 // True if the utility process is used, false otherwise (i.e. for tests).
335 bool use_utility_process_;
336
332 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); 337 DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
333 }; 338 };
334 339
335 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ 340 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698