Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/proxy/multi_threaded_proxy_resolver.h

Issue 8373014: Add new text for indicating we are resolving hosts during proxy resolution. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Oops Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MULTI_THREADED_PROXY_RESOLVER_H_ 5 #ifndef NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_
6 #define NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ 6 #define NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 virtual ~MultiThreadedProxyResolver(); 92 virtual ~MultiThreadedProxyResolver();
93 93
94 // ProxyResolver implementation: 94 // ProxyResolver implementation:
95 virtual int GetProxyForURL(const GURL& url, 95 virtual int GetProxyForURL(const GURL& url,
96 ProxyInfo* results, 96 ProxyInfo* results,
97 OldCompletionCallback* callback, 97 OldCompletionCallback* callback,
98 RequestHandle* request, 98 RequestHandle* request,
99 const BoundNetLog& net_log) OVERRIDE; 99 const BoundNetLog& net_log) OVERRIDE;
100 virtual void CancelRequest(RequestHandle request) OVERRIDE; 100 virtual void CancelRequest(RequestHandle request) OVERRIDE;
101 virtual LoadState GetLoadState(RequestHandle request) const OVERRIDE;
101 virtual void CancelSetPacScript() OVERRIDE; 102 virtual void CancelSetPacScript() OVERRIDE;
102 virtual void PurgeMemory() OVERRIDE; 103 virtual void PurgeMemory() OVERRIDE;
103 virtual int SetPacScript( 104 virtual int SetPacScript(
104 const scoped_refptr<ProxyResolverScriptData>& script_data, 105 const scoped_refptr<ProxyResolverScriptData>& script_data,
105 OldCompletionCallback* callback) OVERRIDE; 106 OldCompletionCallback* callback) OVERRIDE;
106 107
107 private: 108 private:
108 class Executor; 109 class Executor;
109 class Job; 110 class Job;
110 class SetPacScriptJob; 111 class SetPacScriptJob;
(...skipping 23 matching lines...) Expand all
134 const scoped_ptr<ProxyResolverFactory> resolver_factory_; 135 const scoped_ptr<ProxyResolverFactory> resolver_factory_;
135 const size_t max_num_threads_; 136 const size_t max_num_threads_;
136 PendingJobsQueue pending_jobs_; 137 PendingJobsQueue pending_jobs_;
137 ExecutorList executors_; 138 ExecutorList executors_;
138 scoped_refptr<ProxyResolverScriptData> current_script_data_; 139 scoped_refptr<ProxyResolverScriptData> current_script_data_;
139 }; 140 };
140 141
141 } // namespace net 142 } // namespace net
142 143
143 #endif // NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_ 144 #endif // NET_PROXY_MULTI_THREADED_PROXY_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698