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_component_installer.h" | 5 #include "chrome/browser/component_updater/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 |
11 #include "base/atomicops.h" | 11 #include "base/atomicops.h" |
12 #include "base/base_paths.h" | 12 #include "base/base_paths.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/files/file_enumerator.h" | 16 #include "base/files/file_enumerator.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
19 #include "base/json/json_file_value_serializer.h" | 19 #include "base/json/json_file_value_serializer.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/macros.h" | 21 #include "base/macros.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/values.h" | 24 #include "base/values.h" |
25 #include "base/version.h" | 25 #include "base/version.h" |
26 #include "base/win/windows_version.h" | |
27 #include "build/build_config.h" | 26 #include "build/build_config.h" |
28 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
29 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
30 #include "components/component_updater/component_updater_service.h" | 29 #include "components/component_updater/component_updater_service.h" |
31 #include "components/nacl/common/nacl_switches.h" | 30 #include "components/nacl/common/nacl_switches.h" |
32 #include "components/update_client/update_query_params.h" | 31 #include "components/update_client/update_query_params.h" |
33 #include "components/update_client/utils.h" | 32 #include "components/update_client/utils.h" |
34 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
35 | 34 |
| 35 #if defined(OS_WIN) |
| 36 #include "base/win/windows_version.h" |
| 37 #endif |
| 38 |
36 using content::BrowserThread; | 39 using content::BrowserThread; |
37 using update_client::CrxComponent; | 40 using update_client::CrxComponent; |
38 using update_client::UpdateQueryParams; | 41 using update_client::UpdateQueryParams; |
39 | 42 |
40 namespace component_updater { | 43 namespace component_updater { |
41 | 44 |
42 namespace { | 45 namespace { |
43 | 46 |
44 // Name of the Pnacl component specified in the manifest. | 47 // Name of the Pnacl component specified in the manifest. |
45 const char kPnaclManifestName[] = "PNaCl Translator"; | 48 const char kPnaclManifestName[] = "PNaCl Translator"; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 } // namespace component_updater | 393 } // namespace component_updater |
391 | 394 |
392 namespace pnacl { | 395 namespace pnacl { |
393 | 396 |
394 bool NeedsOnDemandUpdate() { | 397 bool NeedsOnDemandUpdate() { |
395 return base::subtle::NoBarrier_Load( | 398 return base::subtle::NoBarrier_Load( |
396 &component_updater::needs_on_demand_update) != 0; | 399 &component_updater::needs_on_demand_update) != 0; |
397 } | 400 } |
398 | 401 |
399 } // namespace pnacl | 402 } // namespace pnacl |
OLD | NEW |