| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NET_RESOLVE_PROXY_MSG_HELPER_ | 5 #ifndef CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_ | 
| 6 #define CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_ | 6 #define CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_ | 
| 7 | 7 | 
| 8 #include <deque> | 8 #include <deque> | 
| 9 #include <string> | 9 #include <string> | 
| 10 | 10 | 
| 11 #include "chrome/common/ipc_message.h" | 11 #include "googleurl/src/gurl.h" | 
|  | 12 #include "ipc/ipc_message.h" | 
| 12 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" | 
| 13 #include "googleurl/src/gurl.h" |  | 
| 14 #include "net/proxy/proxy_service.h" | 14 #include "net/proxy/proxy_service.h" | 
| 15 | 15 | 
| 16 // This class holds the common logic used to respond to the messages: | 16 // This class holds the common logic used to respond to the messages: | 
| 17 // {PluginProcessHostMsg_ResolveProxy, ViewHostMsg_ResolveProxy}. | 17 // {PluginProcessHostMsg_ResolveProxy, ViewHostMsg_ResolveProxy}. | 
| 18 // | 18 // | 
| 19 // This involves kicking off a ProxyResolve request on the IO thread using | 19 // This involves kicking off a ProxyResolve request on the IO thread using | 
| 20 // the specified proxy service. | 20 // the specified proxy service. | 
| 21 // | 21 // | 
| 22 // When the request completes, it calls the delegate's OnProxyResolveCompleted() | 22 // When the request completes, it calls the delegate's OnProxyResolveCompleted() | 
| 23 // method, passing it the result (error code + proxy list), as well as the | 23 // method, passing it the result (error code + proxy list), as well as the | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 94   PendingRequestList pending_requests_; | 94   PendingRequestList pending_requests_; | 
| 95 | 95 | 
| 96   Delegate* delegate_; | 96   Delegate* delegate_; | 
| 97 | 97 | 
| 98   // Specified by unit-tests, to use this proxy service in place of the | 98   // Specified by unit-tests, to use this proxy service in place of the | 
| 99   // global one. | 99   // global one. | 
| 100   net::ProxyService* proxy_service_override_; | 100   net::ProxyService* proxy_service_override_; | 
| 101 }; | 101 }; | 
| 102 | 102 | 
| 103 #endif  // CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_ | 103 #endif  // CHROME_BROWSER_NET_RESOLVE_PROXY_MSG_HELPER_ | 
| OLD | NEW | 
|---|