| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const std::set<int>& request_ids) OVERRIDE; | 85 const std::set<int>& request_ids) OVERRIDE; |
| 86 | 86 |
| 87 virtual void OnExtensionDownloadFinished( | 87 virtual void OnExtensionDownloadFinished( |
| 88 const std::string& id, | 88 const std::string& id, |
| 89 const base::FilePath& path, | 89 const base::FilePath& path, |
| 90 const GURL& download_url, | 90 const GURL& download_url, |
| 91 const std::string& version, | 91 const std::string& version, |
| 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 OnBlacklistDownloadFinished( | |
| 96 const std::string& data, | |
| 97 const std::string& package_hash, | |
| 98 const std::string& version, | |
| 99 const PingResult& ping_result, | |
| 100 const std::set<int>& request_ids) OVERRIDE; | |
| 101 | |
| 102 virtual bool IsExtensionPending(const std::string& id) OVERRIDE; | 95 virtual bool IsExtensionPending(const std::string& id) OVERRIDE; |
| 103 | 96 |
| 104 virtual bool GetExtensionExistingVersion(const std::string& id, | 97 virtual bool GetExtensionExistingVersion(const std::string& id, |
| 105 std::string* version) OVERRIDE; | 98 std::string* version) OVERRIDE; |
| 106 | 99 |
| 107 // Starts a cache update check immediately. | 100 // Starts a cache update check immediately. |
| 108 void CheckCacheNow(); | 101 void CheckCacheNow(); |
| 109 | 102 |
| 110 // Notifies the that the cache has been updated, providing | 103 // Notifies the that the cache has been updated, providing |
| 111 // extensions loader with an updated list of extensions. | 104 // extensions loader with an updated list of extensions. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Unique sequence token so that tasks posted by the ExternalCache are | 174 // Unique sequence token so that tasks posted by the ExternalCache are |
| 182 // executed sequentially in the blocking pool. | 175 // executed sequentially in the blocking pool. |
| 183 base::SequencedWorkerPool::SequenceToken worker_pool_token_; | 176 base::SequencedWorkerPool::SequenceToken worker_pool_token_; |
| 184 | 177 |
| 185 DISALLOW_COPY_AND_ASSIGN(ExternalCache); | 178 DISALLOW_COPY_AND_ASSIGN(ExternalCache); |
| 186 }; | 179 }; |
| 187 | 180 |
| 188 } // namespace chromeos | 181 } // namespace chromeos |
| 189 | 182 |
| 190 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ | 183 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_ |
| OLD | NEW |