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

Unified Diff: content/browser/loader/async_revalidation_driver.h

Issue 2535723005: Stop using ResourceController in ResourceThrottle (Closed)
Patch Set: Addressed #62 Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/async_revalidation_driver.h
diff --git a/content/browser/loader/async_revalidation_driver.h b/content/browser/loader/async_revalidation_driver.h
index a5bf1ec7c4ececa51e8cedc7a91c2245e2f79d4f..b4a0019cdf462ce1842042d7537ced20c6870d40 100644
--- a/content/browser/loader/async_revalidation_driver.h
+++ b/content/browser/loader/async_revalidation_driver.h
@@ -14,7 +14,6 @@
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
#include "content/common/content_export.h"
-#include "content/public/browser/resource_controller.h"
#include "content/public/browser/resource_throttle.h"
#include "net/base/io_buffer.h"
#include "net/url_request/url_request.h"
@@ -24,8 +23,9 @@ namespace content {
// This class is responsible for driving the URLRequest for an async
// revalidation. It is passed an instance of ResourceThrottle created by
// content::ResourceScheduler to perform throttling on the request.
-class CONTENT_EXPORT AsyncRevalidationDriver : public net::URLRequest::Delegate,
- public ResourceController {
+class CONTENT_EXPORT AsyncRevalidationDriver
+ : public net::URLRequest::Delegate,
+ public ResourceThrottle::Delegate {
public:
// |completion_callback| is guaranteed to be called on completion,
// regardless of success or failure.
@@ -60,7 +60,7 @@ class CONTENT_EXPORT AsyncRevalidationDriver : public net::URLRequest::Delegate,
void OnResponseStarted(net::URLRequest* request) override;
void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
- // ResourceController implementation:
+ // ResourceThrottle::Delegate implementation:
void Resume() override;
// For simplicity, this class assumes that ResourceScheduler never cancels

Powered by Google App Engine
This is Rietveld 408576698