| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "googleurl/src/gurl.h" | |
| 17 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 18 #include "net/base/network_change_notifier.h" | 17 #include "net/base/network_change_notifier.h" |
| 19 #include "net/url_request/url_request_throttler_entry.h" | 18 #include "net/url_request/url_request_throttler_entry.h" |
| 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 class BoundNetLog; | 23 class BoundNetLog; |
| 24 class NetLog; | 24 class NetLog; |
| 25 | 25 |
| 26 // Class that registers URL request throttler entries for URLs being accessed | 26 // Class that registers URL request throttler entries for URLs being accessed |
| 27 // in order to supervise traffic. URL requests for HTTP contents should | 27 // in order to supervise traffic. URL requests for HTTP contents should |
| 28 // register their URLs in this manager on each request. | 28 // register their URLs in this manager on each request. |
| 29 // | 29 // |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 // Valid once we've registered for network notifications. | 158 // Valid once we've registered for network notifications. |
| 159 base::PlatformThreadId registered_from_thread_; | 159 base::PlatformThreadId registered_from_thread_; |
| 160 | 160 |
| 161 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); | 161 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace net | 164 } // namespace net |
| 165 | 165 |
| 166 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ | 166 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ |
| OLD | NEW |