| 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 #ifndef CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ |
| 6 #define CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ | 6 #define CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual void OnExtensionDownloadFailed( | 142 virtual void OnExtensionDownloadFailed( |
| 143 const std::string& id, | 143 const std::string& id, |
| 144 Error error, | 144 Error error, |
| 145 const PingResult& ping_result) OVERRIDE; | 145 const PingResult& ping_result) OVERRIDE; |
| 146 | 146 |
| 147 virtual void OnExtensionDownloadFinished( | 147 virtual void OnExtensionDownloadFinished( |
| 148 const std::string& id, | 148 const std::string& id, |
| 149 const FilePath& path, | 149 const FilePath& path, |
| 150 const GURL& download_url, | 150 const GURL& download_url, |
| 151 const std::string& version, | 151 const std::string& version, |
| 152 const PingResult& ping_result) OVERRIDE; | 152 const PingResult& ping_result, |
| 153 const bool is_sync) OVERRIDE; |
| 154 |
| 155 // TODO(eriq): Take out this hack and actually provide sync data. |
| 156 virtual void OnExtensionDownloadFinished( |
| 157 const std::string& id, |
| 158 const FilePath& path, |
| 159 const GURL& download_url, |
| 160 const std::string& version, |
| 161 const PingResult& ping_result) { |
| 162 OnExtensionDownloadFinished(id, path, download_url, version, |
| 163 ping_result, false); |
| 164 } |
| 153 | 165 |
| 154 virtual void OnBlacklistDownloadFinished( | 166 virtual void OnBlacklistDownloadFinished( |
| 155 const std::string& data, | 167 const std::string& data, |
| 156 const std::string& package_hash, | 168 const std::string& package_hash, |
| 157 const std::string& version, | 169 const std::string& version, |
| 158 const PingResult& ping_result) OVERRIDE; | 170 const PingResult& ping_result) OVERRIDE; |
| 159 | 171 |
| 160 virtual bool IsExtensionPending(const std::string& id) OVERRIDE; | 172 virtual bool IsExtensionPending(const std::string& id) OVERRIDE; |
| 161 | 173 |
| 162 virtual bool GetExtensionExistingVersion(const std::string& id, | 174 virtual bool GetExtensionExistingVersion(const std::string& id, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 243 |
| 232 // Request context used by the |downloader_|. | 244 // Request context used by the |downloader_|. |
| 233 net::URLRequestContextGetter* request_context_; | 245 net::URLRequestContextGetter* request_context_; |
| 234 | 246 |
| 235 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater); | 247 DISALLOW_COPY_AND_ASSIGN(AppPackUpdater); |
| 236 }; | 248 }; |
| 237 | 249 |
| 238 } // namespace policy | 250 } // namespace policy |
| 239 | 251 |
| 240 #endif // CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ | 252 #endif // CHROME_BROWSER_POLICY_APP_PACK_UPDATER_H_ |
| OLD | NEW |