| 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_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 Error error, | 65 Error error, |
| 66 const PingResult& ping_result); | 66 const PingResult& ping_result); |
| 67 | 67 |
| 68 // Invoked if the extension had an update available and its crx was | 68 // Invoked if the extension had an update available and its crx was |
| 69 // successfully downloaded to |path|. Ownership of that file is transferred | 69 // successfully downloaded to |path|. Ownership of that file is transferred |
| 70 // to the delegate. | 70 // to the delegate. |
| 71 virtual void OnExtensionDownloadFinished(const std::string& id, | 71 virtual void OnExtensionDownloadFinished(const std::string& id, |
| 72 const FilePath& path, | 72 const FilePath& path, |
| 73 const GURL& download_url, | 73 const GURL& download_url, |
| 74 const std::string& version, | 74 const std::string& version, |
| 75 const PingResult& ping_result) = 0; | 75 const PingResult& ping_result, |
| 76 const bool is_sync) = 0; |
| 76 | 77 |
| 77 // Same as OnExtensionDownloadFinished() but only for the kBlacklistAppID | 78 // Same as OnExtensionDownloadFinished() but only for the kBlacklistAppID |
| 78 // extension, which passes different data to the delegate. | 79 // extension, which passes different data to the delegate. |
| 79 virtual void OnBlacklistDownloadFinished(const std::string& data, | 80 virtual void OnBlacklistDownloadFinished(const std::string& data, |
| 80 const std::string& package_hash, | 81 const std::string& package_hash, |
| 81 const std::string& version, | 82 const std::string& version, |
| 82 const PingResult& ping_result) = 0; | 83 const PingResult& ping_result) = 0; |
| 83 | 84 |
| 84 // The remaining methods are used by the ExtensionDownloader to retrieve | 85 // The remaining methods are used by the ExtensionDownloader to retrieve |
| 85 // information about extensions from the delegate. | 86 // information about extensions from the delegate. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 100 | 101 |
| 101 // Invoked to get the current version of extension |id|. Returns false if | 102 // Invoked to get the current version of extension |id|. Returns false if |
| 102 // that extension is not installed. | 103 // that extension is not installed. |
| 103 virtual bool GetExtensionExistingVersion(const std::string& id, | 104 virtual bool GetExtensionExistingVersion(const std::string& id, |
| 104 std::string* version) = 0; | 105 std::string* version) = 0; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace extensions | 108 } // namespace extensions |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ |
| OLD | NEW |