OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // stall re-configuration following an IP address change). | 355 // stall re-configuration following an IP address change). |
356 base::TimeTicks stall_proxy_autoconfig_until_; | 356 base::TimeTicks stall_proxy_autoconfig_until_; |
357 | 357 |
358 // The amount of time to stall requests following IP address changes. | 358 // The amount of time to stall requests following IP address changes. |
359 base::TimeDelta stall_proxy_auto_config_delay_; | 359 base::TimeDelta stall_proxy_auto_config_delay_; |
360 | 360 |
361 DISALLOW_COPY_AND_ASSIGN(ProxyService); | 361 DISALLOW_COPY_AND_ASSIGN(ProxyService); |
362 }; | 362 }; |
363 | 363 |
364 // Wrapper for invoking methods on a ProxyService synchronously. | 364 // Wrapper for invoking methods on a ProxyService synchronously. |
365 class SyncProxyServiceHelper | 365 class NET_API SyncProxyServiceHelper |
366 : public base::RefCountedThreadSafe<SyncProxyServiceHelper> { | 366 : public base::RefCountedThreadSafe<SyncProxyServiceHelper> { |
367 public: | 367 public: |
368 SyncProxyServiceHelper(MessageLoop* io_message_loop, | 368 SyncProxyServiceHelper(MessageLoop* io_message_loop, |
369 ProxyService* proxy_service); | 369 ProxyService* proxy_service); |
370 | 370 |
371 int ResolveProxy(const GURL& url, | 371 int ResolveProxy(const GURL& url, |
372 ProxyInfo* proxy_info, | 372 ProxyInfo* proxy_info, |
373 const BoundNetLog& net_log); | 373 const BoundNetLog& net_log); |
374 int ReconsiderProxyAfterError(const GURL& url, | 374 int ReconsiderProxyAfterError(const GURL& url, |
375 ProxyInfo* proxy_info, | 375 ProxyInfo* proxy_info, |
(...skipping 14 matching lines...) Expand all Loading... |
390 | 390 |
391 base::WaitableEvent event_; | 391 base::WaitableEvent event_; |
392 CompletionCallbackImpl<SyncProxyServiceHelper> callback_; | 392 CompletionCallbackImpl<SyncProxyServiceHelper> callback_; |
393 ProxyInfo proxy_info_; | 393 ProxyInfo proxy_info_; |
394 int result_; | 394 int result_; |
395 }; | 395 }; |
396 | 396 |
397 } // namespace net | 397 } // namespace net |
398 | 398 |
399 #endif // NET_PROXY_PROXY_SERVICE_H_ | 399 #endif // NET_PROXY_PROXY_SERVICE_H_ |
OLD | NEW |