OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
| 6 #define CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "content/common/content_export.h" |
| 12 #include "content/public/browser/resource_throttle.h" |
| 13 |
| 14 namespace net { |
| 15 class URLRequest; |
| 16 } // namespace net |
| 17 |
| 18 namespace content { |
| 19 |
| 20 // This class allows the embedder (via WebContentsDelegate) to selectively |
| 21 // ignore top level navigations. |
| 22 class CONTENT_EXPORT InterceptNavigationResourceThrottle : |
| 23 public content::ResourceThrottle { |
| 24 public: |
| 25 static InterceptNavigationResourceThrottle* |
| 26 Create(net::URLRequest* request); |
| 27 virtual ~InterceptNavigationResourceThrottle() {} |
| 28 |
| 29 protected: |
| 30 InterceptNavigationResourceThrottle() {} |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(InterceptNavigationResourceThrottle); |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_PUBLIC_INTERCEPT_NAVIGATION_RESOURCE_THROTTLE_H_ |
OLD | NEW |