| 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Implementation of ExtensionDownloaderDelegate: | 88 // Implementation of ExtensionDownloaderDelegate: |
| 89 virtual void OnExtensionDownloadFailed( | 89 virtual void OnExtensionDownloadFailed( |
| 90 const std::string& id, | 90 const std::string& id, |
| 91 Error error, | 91 Error error, |
| 92 const PingResult& ping_result, | 92 const PingResult& ping_result, |
| 93 const std::set<int>& request_ids) override; | 93 const std::set<int>& request_ids) override; |
| 94 | 94 |
| 95 virtual void OnExtensionDownloadFinished( | 95 virtual void OnExtensionDownloadFinished( |
| 96 const std::string& id, | 96 const std::string& id, |
| 97 const base::FilePath& path, | 97 const base::FilePath& path, |
| 98 const std::string& hash, |
| 98 bool file_ownership_passed, | 99 bool file_ownership_passed, |
| 99 const GURL& download_url, | 100 const GURL& download_url, |
| 100 const std::string& version, | 101 const std::string& version, |
| 101 const PingResult& ping_result, | 102 const PingResult& ping_result, |
| 102 const std::set<int>& request_ids) override; | 103 const std::set<int>& request_ids) override; |
| 103 | 104 |
| 104 virtual bool IsExtensionPending(const std::string& id) override; | 105 virtual bool IsExtensionPending(const std::string& id) override; |
| 105 | 106 |
| 106 virtual bool GetExtensionExistingVersion(const std::string& id, | 107 virtual bool GetExtensionExistingVersion(const std::string& id, |
| 107 std::string* version) override; | 108 std::string* version) override; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 190 |
| 190 // Weak factory for callbacks. | 191 // Weak factory for callbacks. |
| 191 base::WeakPtrFactory<ExternalCache> weak_ptr_factory_; | 192 base::WeakPtrFactory<ExternalCache> weak_ptr_factory_; |
| 192 | 193 |
| 193 DISALLOW_COPY_AND_ASSIGN(ExternalCache); | 194 DISALLOW_COPY_AND_ASSIGN(ExternalCache); |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace chromeos | 197 } // namespace chromeos |
| 197 | 198 |
| 198 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ |
| OLD | NEW |