Index: content/public/browser/intercept_navigation_resource_throttle.h |
diff --git a/content/public/browser/intercept_navigation_resource_throttle.h b/content/public/browser/intercept_navigation_resource_throttle.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..561afff2dab9478c4fa31e33766191cb95fb182f |
--- /dev/null |
+++ b/content/public/browser/intercept_navigation_resource_throttle.h |
@@ -0,0 +1,38 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
+#define CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
+#pragma once |
+ |
+#include <string> |
+ |
+#include "content/common/content_export.h" |
+#include "content/public/browser/resource_throttle.h" |
+ |
+namespace net { |
+class URLRequest; |
+} // namespace net |
+ |
+namespace content { |
+ |
+// This class allows the embedder (via WebContentsDelegate) to selectively |
+// ignore top level navigations. |
+class CONTENT_EXPORT InterceptNavigationResourceThrottle : |
+ public content::ResourceThrottle { |
+ public: |
+ static InterceptNavigationResourceThrottle* |
+ Create(net::URLRequest* request); |
+ virtual ~InterceptNavigationResourceThrottle() {} |
+ |
+ protected: |
+ InterceptNavigationResourceThrottle() {} |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |