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_PROXY_PROXY_SERVICE_H_ | 5 #ifndef NET_PROXY_PROXY_SERVICE_H_ |
6 #define NET_PROXY_PROXY_SERVICE_H_ | 6 #define NET_PROXY_PROXY_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // Advances the current state to |STATE_READY|, and resumes any pending | 347 // Advances the current state to |STATE_READY|, and resumes any pending |
348 // requests which had been stalled waiting for initialization to complete. | 348 // requests which had been stalled waiting for initialization to complete. |
349 void SetReady(); | 349 void SetReady(); |
350 | 350 |
351 // Returns true if |pending_requests_| contains |req|. | 351 // Returns true if |pending_requests_| contains |req|. |
352 bool ContainsPendingRequest(PacRequest* req); | 352 bool ContainsPendingRequest(PacRequest* req); |
353 | 353 |
354 // Removes |req| from the list of pending requests. | 354 // Removes |req| from the list of pending requests. |
355 void RemovePendingRequest(PacRequest* req); | 355 void RemovePendingRequest(PacRequest* req); |
356 | 356 |
| 357 // Returns the number of pending requests. |
| 358 size_t NumPendingRequests() const; |
| 359 |
357 // Called when proxy resolution has completed (either synchronously or | 360 // Called when proxy resolution has completed (either synchronously or |
358 // asynchronously). Handles logging the result, and cleaning out | 361 // asynchronously). Handles logging the result, and cleaning out |
359 // bad entries from the results list. | 362 // bad entries from the results list. |
360 int DidFinishResolvingProxy(const GURL& url, | 363 int DidFinishResolvingProxy(const GURL& url, |
361 int load_flags, | 364 int load_flags, |
362 NetworkDelegate* network_delegate, | 365 NetworkDelegate* network_delegate, |
363 ProxyInfo* result, | 366 ProxyInfo* result, |
364 int result_code, | 367 int result_code, |
365 const BoundNetLog& net_log); | 368 const BoundNetLog& net_log); |
366 | 369 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 450 |
448 // Whether child ProxyScriptDeciders should use QuickCheck | 451 // Whether child ProxyScriptDeciders should use QuickCheck |
449 bool quick_check_enabled_; | 452 bool quick_check_enabled_; |
450 | 453 |
451 DISALLOW_COPY_AND_ASSIGN(ProxyService); | 454 DISALLOW_COPY_AND_ASSIGN(ProxyService); |
452 }; | 455 }; |
453 | 456 |
454 } // namespace net | 457 } // namespace net |
455 | 458 |
456 #endif // NET_PROXY_PROXY_SERVICE_H_ | 459 #endif // NET_PROXY_PROXY_SERVICE_H_ |
OLD | NEW |