| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 11 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
| 11 #include "chrome/browser/supervised_user/supervised_users.h" | 12 #include "chrome/browser/supervised_user/supervised_users.h" |
| 12 #include "content/public/browser/resource_throttle.h" | 13 #include "content/public/browser/resource_throttle.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 class URLRequest; | 16 class URLRequest; |
| 16 } | 17 } |
| 17 | 18 |
| 18 class SupervisedUserResourceThrottle : public content::ResourceThrottle { | 19 class SupervisedUserResourceThrottle : public content::ResourceThrottle { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 bool is_main_frame_; | 46 bool is_main_frame_; |
| 46 const SupervisedUserURLFilter* url_filter_; | 47 const SupervisedUserURLFilter* url_filter_; |
| 47 bool deferred_; | 48 bool deferred_; |
| 48 SupervisedUserURLFilter::FilteringBehavior behavior_; | 49 SupervisedUserURLFilter::FilteringBehavior behavior_; |
| 49 base::WeakPtrFactory<SupervisedUserResourceThrottle> weak_ptr_factory_; | 50 base::WeakPtrFactory<SupervisedUserResourceThrottle> weak_ptr_factory_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(SupervisedUserResourceThrottle); | 52 DISALLOW_COPY_AND_ASSIGN(SupervisedUserResourceThrottle); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ | 55 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_RESOURCE_THROTTLE_H_ |
| OLD | NEW |