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

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

Issue 2563163002: Add some tests for ThrottlingResourceHandler. (Closed)
Patch Set: Add comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/throttling_resource_handler.h
diff --git a/content/browser/loader/throttling_resource_handler.h b/content/browser/loader/throttling_resource_handler.h
index 93c7f526be7675a7d3916e167e6a9da9d7396f4d..e608f84ac93b92f077e5189f70baa272a5fe6932 100644
--- a/content/browser/loader/throttling_resource_handler.h
+++ b/content/browser/loader/throttling_resource_handler.h
@@ -10,8 +10,10 @@
#include <memory>
#include <vector>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/browser/loader/layered_resource_handler.h"
+#include "content/common/content_export.h"
#include "content/public/browser/resource_throttle.h"
#include "net/url_request/redirect_info.h"
#include "url/gurl.h"
@@ -25,8 +27,9 @@ namespace content {
struct ResourceResponse;
// Used to apply a list of ResourceThrottle instances to an URLRequest.
-class ThrottlingResourceHandler : public LayeredResourceHandler,
- public ResourceThrottle::Delegate {
+class CONTENT_EXPORT ThrottlingResourceHandler
+ : public LayeredResourceHandler,
+ public ResourceThrottle::Delegate {
public:
ThrottlingResourceHandler(
std::unique_ptr<ResourceHandler> next_handler,
@@ -72,6 +75,8 @@ class ThrottlingResourceHandler : public LayeredResourceHandler,
scoped_refptr<ResourceResponse> deferred_response_;
bool cancelled_by_resource_throttle_;
+
+ DISALLOW_COPY_AND_ASSIGN(ThrottlingResourceHandler);
};
} // namespace content
« no previous file with comments | « content/browser/loader/mock_resource_loader.cc ('k') | content/browser/loader/throttling_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698