Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Side by Side Diff: extensions/browser/updater/extension_downloader_test_delegate.h

Issue 1887253002: Rate limit programmatic update checks for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for idleness waiting problem caused by crrev.com/388245 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/updater/extension_downloader.cc ('k') | extensions/extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « extensions/browser/updater/extension_downloader.cc ('k') | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698