OLD | NEW |
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 extension_misc::CrxInstallCause install_cause() const { | 144 extension_misc::CrxInstallCause install_cause() const { |
145 return install_cause_; | 145 return install_cause_; |
146 } | 146 } |
147 | 147 |
148 void set_install_cause(extension_misc::CrxInstallCause install_cause) { | 148 void set_install_cause(extension_misc::CrxInstallCause install_cause) { |
149 install_cause_ = install_cause; | 149 install_cause_ = install_cause; |
150 } | 150 } |
151 | 151 |
152 private: | 152 private: |
| 153 friend class ExtensionUpdaterTest; |
| 154 |
153 virtual ~CrxInstaller(); | 155 virtual ~CrxInstaller(); |
154 | 156 |
155 // Converts the source user script to an extension. | 157 // Converts the source user script to an extension. |
156 void ConvertUserScriptOnFileThread(); | 158 void ConvertUserScriptOnFileThread(); |
157 | 159 |
158 // Converts the source web app to an extension. | 160 // Converts the source web app to an extension. |
159 void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app); | 161 void ConvertWebAppOnFileThread(const WebApplicationInfo& web_app); |
160 | 162 |
161 // Called after OnUnpackSuccess as a last check to see whether the install | 163 // Called after OnUnpackSuccess as a last check to see whether the install |
162 // should complete. | 164 // should complete. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 std::string original_mime_type_; | 279 std::string original_mime_type_; |
278 | 280 |
279 // What caused this install? Used only for histograms that report | 281 // What caused this install? Used only for histograms that report |
280 // on failure rates, broken down by the cause of the install. | 282 // on failure rates, broken down by the cause of the install. |
281 extension_misc::CrxInstallCause install_cause_; | 283 extension_misc::CrxInstallCause install_cause_; |
282 | 284 |
283 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); | 285 DISALLOW_COPY_AND_ASSIGN(CrxInstaller); |
284 }; | 286 }; |
285 | 287 |
286 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ | 288 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_H_ |
OLD | NEW |