OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" | 5 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 base::FilePath* installed_file) { | 273 base::FilePath* installed_file) { |
274 if (current_version().Equals(Version(kNullVersion))) | 274 if (current_version().Equals(Version(kNullVersion))) |
275 return false; | 275 return false; |
276 | 276 |
277 *installed_file = GetPnaclBaseDirectory() | 277 *installed_file = GetPnaclBaseDirectory() |
278 .AppendASCII(current_version().GetString()) | 278 .AppendASCII(current_version().GetString()) |
279 .AppendASCII(file); | 279 .AppendASCII(file); |
280 return true; | 280 return true; |
281 } | 281 } |
282 | 282 |
| 283 bool PnaclComponentInstaller::Uninstall() { |
| 284 return false; |
| 285 } |
| 286 |
283 CrxComponent PnaclComponentInstaller::GetCrxComponent() { | 287 CrxComponent PnaclComponentInstaller::GetCrxComponent() { |
284 CrxComponent pnacl_component; | 288 CrxComponent pnacl_component; |
285 pnacl_component.version = current_version(); | 289 pnacl_component.version = current_version(); |
286 pnacl_component.name = "pnacl"; | 290 pnacl_component.name = "pnacl"; |
287 pnacl_component.installer = this; | 291 pnacl_component.installer = this; |
288 pnacl_component.fingerprint = current_fingerprint(); | 292 pnacl_component.fingerprint = current_fingerprint(); |
289 SetPnaclHash(&pnacl_component); | 293 SetPnaclHash(&pnacl_component); |
290 | 294 |
291 return pnacl_component; | 295 return pnacl_component; |
292 } | 296 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 } // namespace component_updater | 379 } // namespace component_updater |
376 | 380 |
377 namespace pnacl { | 381 namespace pnacl { |
378 | 382 |
379 bool NeedsOnDemandUpdate() { | 383 bool NeedsOnDemandUpdate() { |
380 return base::subtle::NoBarrier_Load( | 384 return base::subtle::NoBarrier_Load( |
381 &component_updater::needs_on_demand_update) != 0; | 385 &component_updater::needs_on_demand_update) != 0; |
382 } | 386 } |
383 | 387 |
384 } // namespace pnacl | 388 } // namespace pnacl |
OLD | NEW |