| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_TEST_DELEGATE_H_ | |
| 6 #define EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_TEST_DELEGATE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 class ExtensionDownloader; | |
| 13 class ExtensionDownloaderDelegate; | |
| 14 class ManifestFetchData; | |
| 15 | |
| 16 // A class for intercepting the work of checking for / downloading extension | |
| 17 // updates. | |
| 18 class ExtensionDownloaderTestDelegate { | |
| 19 public: | |
| 20 // This method gets called when an update check is being started for an | |
| 21 // extension. Normally implementors should eventually call either | |
| 22 // OnExtensionDownloadFailed or OnExtensionDownloadFinished on | |
| 23 // |delegate|. | |
| 24 virtual void StartUpdateCheck( | |
| 25 ExtensionDownloader* downloader, | |
| 26 ExtensionDownloaderDelegate* delegate, | |
| 27 std::unique_ptr<ManifestFetchData> fetch_data) = 0; | |
| 28 }; | |
| 29 | |
| 30 } // namespace extensions | |
| 31 | |
| 32 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_TEST_DELEGATE_H_ | |
| OLD | NEW |