OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string.h> | 5 #include <string.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 public: | 334 public: |
335 explicit PepperFlashComponentInstaller(const Version& version); | 335 explicit PepperFlashComponentInstaller(const Version& version); |
336 | 336 |
337 virtual ~PepperFlashComponentInstaller() {} | 337 virtual ~PepperFlashComponentInstaller() {} |
338 | 338 |
339 virtual void OnUpdateError(int error) OVERRIDE; | 339 virtual void OnUpdateError(int error) OVERRIDE; |
340 | 340 |
341 virtual bool Install(const base::DictionaryValue& manifest, | 341 virtual bool Install(const base::DictionaryValue& manifest, |
342 const base::FilePath& unpack_path) OVERRIDE; | 342 const base::FilePath& unpack_path) OVERRIDE; |
343 | 343 |
| 344 virtual void OnInstallError( |
| 345 const InstallerSourceSerializer& serializer) OVERRIDE; |
| 346 |
344 virtual bool GetInstalledFile(const std::string& file, | 347 virtual bool GetInstalledFile(const std::string& file, |
345 base::FilePath* installed_file) OVERRIDE; | 348 base::FilePath* installed_file) OVERRIDE; |
346 | 349 |
347 private: | 350 private: |
348 Version current_version_; | 351 Version current_version_; |
349 }; | 352 }; |
350 | 353 |
351 PepperFlashComponentInstaller::PepperFlashComponentInstaller( | 354 PepperFlashComponentInstaller::PepperFlashComponentInstaller( |
352 const Version& version) | 355 const Version& version) |
353 : current_version_(version) { | 356 : current_version_(version) { |
(...skipping 26 matching lines...) Expand all Loading... |
380 current_version_ = version; | 383 current_version_ = version; |
381 PathService::Override(chrome::DIR_PEPPER_FLASH_PLUGIN, path); | 384 PathService::Override(chrome::DIR_PEPPER_FLASH_PLUGIN, path); |
382 path = path.Append(chrome::kPepperFlashPluginFilename); | 385 path = path.Append(chrome::kPepperFlashPluginFilename); |
383 BrowserThread::PostTask( | 386 BrowserThread::PostTask( |
384 BrowserThread::UI, | 387 BrowserThread::UI, |
385 FROM_HERE, | 388 FROM_HERE, |
386 base::Bind(&RegisterPepperFlashWithChrome, path, version, false)); | 389 base::Bind(&RegisterPepperFlashWithChrome, path, version, false)); |
387 return true; | 390 return true; |
388 } | 391 } |
389 | 392 |
| 393 void PepperFlashComponentInstaller::OnInstallError( |
| 394 const InstallerSourceSerializer& serializer) { |
| 395 } |
| 396 |
390 bool PepperFlashComponentInstaller::GetInstalledFile( | 397 bool PepperFlashComponentInstaller::GetInstalledFile( |
391 const std::string& file, | 398 const std::string& file, |
392 base::FilePath* installed_file) { | 399 base::FilePath* installed_file) { |
393 return false; | 400 return false; |
394 } | 401 } |
395 | 402 |
396 bool CheckPepperFlashManifest(const base::DictionaryValue& manifest, | 403 bool CheckPepperFlashManifest(const base::DictionaryValue& manifest, |
397 Version* version_out) { | 404 Version* version_out) { |
398 std::string name; | 405 std::string name; |
399 manifest.GetStringASCII("name", &name); | 406 manifest.GetStringASCII("name", &name); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 514 CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
508 if (cmd_line->HasSwitch(switches::kDisableBundledPpapiFlash)) | 515 if (cmd_line->HasSwitch(switches::kDisableBundledPpapiFlash)) |
509 return; | 516 return; |
510 BrowserThread::PostTask(BrowserThread::FILE, | 517 BrowserThread::PostTask(BrowserThread::FILE, |
511 FROM_HERE, | 518 FROM_HERE, |
512 base::Bind(&StartPepperFlashUpdateRegistration, cus)); | 519 base::Bind(&StartPepperFlashUpdateRegistration, cus)); |
513 #endif | 520 #endif |
514 } | 521 } |
515 | 522 |
516 } // namespace component_updater | 523 } // namespace component_updater |
OLD | NEW |