| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ | 5 #ifndef CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
| 6 #define CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ | 6 #define CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/common/safe_browsing.mojom.h" | 9 #include "chrome/common/safe_browsing.mojom.h" |
| 10 #include "content/public/child/url_loader_throttle.h" | 10 #include "content/public/common/url_loader_throttle.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 namespace mojom { | 13 namespace mojom { |
| 14 class SafeBrowsing; | 14 class SafeBrowsing; |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace safe_browsing { | 18 namespace safe_browsing { |
| 19 | 19 |
| 20 // SafeBrowsingURLLoaderThrottle queries SafeBrowsing to determine whether the | 20 // SafeBrowsingURLLoaderThrottle queries SafeBrowsing to determine whether the |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 size_t pending_checks_ = 0; | 52 size_t pending_checks_ = 0; |
| 53 bool blocked_ = false; | 53 bool blocked_ = false; |
| 54 | 54 |
| 55 base::WeakPtrFactory<SafeBrowsingURLLoaderThrottle> weak_factory_; | 55 base::WeakPtrFactory<SafeBrowsingURLLoaderThrottle> weak_factory_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace safe_browsing | 58 } // namespace safe_browsing |
| 59 | 59 |
| 60 #endif // CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ | 60 #endif // CHROME_RENDERER_SAFE_BROWSING_SAFE_BROWSING_URL_LOADER_THROTTLE_H_ |
| OLD | NEW |