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

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

Issue 2563163002: Add some tests for ThrottlingResourceHandler. (Closed)
Patch Set: Merge 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/throttling_resource_handler.h
diff --git a/content/browser/loader/throttling_resource_handler.h b/content/browser/loader/throttling_resource_handler.h
index b44cde32bfeb755cc86eda43b6fac83fab2a74c6..f58f1f5bd14444f8d7f71c123a829b0ee8501e08 100644
--- a/content/browser/loader/throttling_resource_handler.h
+++ b/content/browser/loader/throttling_resource_handler.h
@@ -7,9 +7,11 @@
#include <stddef.h>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_vector.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"
@@ -23,8 +25,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:
// Takes ownership of the ResourceThrottle instances.
ThrottlingResourceHandler(std::unique_ptr<ResourceHandler> next_handler,
@@ -70,6 +73,8 @@ class ThrottlingResourceHandler : public LayeredResourceHandler,
scoped_refptr<ResourceResponse> deferred_response_;
bool cancelled_by_resource_throttle_;
+
+ DISALLOW_COPY_AND_ASSIGN(ThrottlingResourceHandler);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698