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 #include "chrome/browser/component_updater/flash_component_installer.h" | 5 #include "chrome/browser/component_updater/flash_component_installer.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "base/version.h" | 19 #include "base/version.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "chrome/browser/component_updater/component_updater_service.h" | 21 #include "chrome/browser/component_updater/component_updater_service.h" |
22 #include "chrome/browser/plugin_prefs.h" | 22 #include "chrome/browser/plugin_prefs.h" |
23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/installer/util/browser_distribution.h" | 24 #include "chrome/installer/util/browser_distribution.h" |
25 #include "content/browser/plugin_service.h" | |
26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 26 #include "content/public/browser/plugin_service.h" |
27 #include "content/public/common/pepper_plugin_info.h" | 27 #include "content/public/common/pepper_plugin_info.h" |
28 #include "ppapi/c/private/ppb_pdf.h" | 28 #include "ppapi/c/private/ppb_pdf.h" |
29 #include "webkit/plugins/plugin_constants.h" | 29 #include "webkit/plugins/plugin_constants.h" |
30 #include "webkit/plugins/ppapi/plugin_module.h" | 30 #include "webkit/plugins/ppapi/plugin_module.h" |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
| 33 using content::PluginService; |
33 | 34 |
34 namespace { | 35 namespace { |
35 | 36 |
36 // CRX hash. The extension id is: mimojjlkmoijpicakmndhoigimigcmbb. | 37 // CRX hash. The extension id is: mimojjlkmoijpicakmndhoigimigcmbb. |
37 const uint8 sha2_hash[] = {0xc8, 0xce, 0x99, 0xba, 0xce, 0x89, 0xf8, 0x20, | 38 const uint8 sha2_hash[] = {0xc8, 0xce, 0x99, 0xba, 0xce, 0x89, 0xf8, 0x20, |
38 0xac, 0xd3, 0x7e, 0x86, 0x8c, 0x86, 0x2c, 0x11, | 39 0xac, 0xd3, 0x7e, 0x86, 0x8c, 0x86, 0x2c, 0x11, |
39 0xb9, 0x40, 0xc5, 0x55, 0xaf, 0x08, 0x63, 0x70, | 40 0xb9, 0x40, 0xc5, 0x55, 0xaf, 0x08, 0x63, 0x70, |
40 0x54, 0xf9, 0x56, 0xd3, 0xe7, 0x88, 0xba, 0x8c}; | 41 0x54, 0xf9, 0x56, 0xd3, 0xe7, 0x88, 0xba, 0x8c}; |
41 | 42 |
42 // File name of the Pepper Flash plugin on different platforms. | 43 // File name of the Pepper Flash plugin on different platforms. |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 } | 341 } |
341 | 342 |
342 } // namespace | 343 } // namespace |
343 | 344 |
344 void RegisterPepperFlashComponent(ComponentUpdateService* cus) { | 345 void RegisterPepperFlashComponent(ComponentUpdateService* cus) { |
345 #if defined(GOOGLE_CHROME_BUILD) | 346 #if defined(GOOGLE_CHROME_BUILD) |
346 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, | 347 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, |
347 base::Bind(&StartPepperFlashUpdateRegistration, cus)); | 348 base::Bind(&StartPepperFlashUpdateRegistration, cus)); |
348 #endif | 349 #endif |
349 } | 350 } |
OLD | NEW |