| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ | 5 #ifndef COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ |
| 6 #define COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ | 6 #define COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/public/browser/resource_throttle.h" | 10 #include "content/public/browser/resource_throttle.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace net { | |
| 14 class URLRequest; | |
| 15 } | |
| 16 | |
| 17 namespace web_restrictions { | 13 namespace web_restrictions { |
| 18 | 14 |
| 19 class WebRestrictionsClient; | 15 class WebRestrictionsClient; |
| 20 | 16 |
| 21 class WebRestrictionsResourceThrottle : public content::ResourceThrottle { | 17 class WebRestrictionsResourceThrottle : public content::ResourceThrottle { |
| 22 public: | 18 public: |
| 23 WebRestrictionsResourceThrottle(WebRestrictionsClient* provider, | 19 WebRestrictionsResourceThrottle(WebRestrictionsClient* provider, |
| 24 const GURL& request_url, | 20 const GURL& request_url, |
| 25 bool is_main_frame); | 21 bool is_main_frame); |
| 26 ~WebRestrictionsResourceThrottle() override; | 22 ~WebRestrictionsResourceThrottle() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 const GURL request_url_; | 37 const GURL request_url_; |
| 42 bool is_main_frame_; | 38 bool is_main_frame_; |
| 43 base::WeakPtrFactory<WebRestrictionsResourceThrottle> weak_ptr_factory_; | 39 base::WeakPtrFactory<WebRestrictionsResourceThrottle> weak_ptr_factory_; |
| 44 | 40 |
| 45 DISALLOW_COPY_AND_ASSIGN(WebRestrictionsResourceThrottle); | 41 DISALLOW_COPY_AND_ASSIGN(WebRestrictionsResourceThrottle); |
| 46 }; | 42 }; |
| 47 | 43 |
| 48 } // namespace web_restrictions | 44 } // namespace web_restrictions |
| 49 | 45 |
| 50 #endif // COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ | 46 #endif // COMPONENTS_WEB_RESTRICTION_WEB_RESTRICTION_RESOURCE_THROTTLE_H_ |
| OLD | NEW |