| 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 namespace extensions { |
| 9 |
| 10 // A class for intercepting the work of checking for / downloading extension |
| 11 // updates. |
| 12 class ExtensionDownloaderTestDelegate { |
| 13 public: |
| 14 // This method gets called when an update check is being started for an |
| 15 // extension. Normally implementors should eventually call either |
| 16 // OnExtensionDownloadFailed or OnExtensionDownloadFinished on |
| 17 // |delegate|. |
| 18 virtual void StartUpdateCheck(ExtensionDownloader* downloader, |
| 19 ExtensionDownloaderDelegate* delegate, |
| 20 scoped_ptr<ManifestFetchData> fetch_data) = 0; |
| 21 }; |
| 22 |
| 23 } // namespace extensions |
| 24 |
| 25 #endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_DOWNLOADER_TEST_DELEGATE_H_ |
| OLD | NEW |