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

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

Issue 11788022: Update an outdated comment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Callback for when the proxy resolver has been initialized with a 292 // Callback for when the proxy resolver has been initialized with a
293 // PAC script. 293 // PAC script.
294 void OnInitProxyResolverComplete(int result); 294 void OnInitProxyResolverComplete(int result);
295 295
296 // Returns ERR_IO_PENDING if the request cannot be completed synchronously. 296 // Returns ERR_IO_PENDING if the request cannot be completed synchronously.
297 // Otherwise it fills |result| with the proxy information for |url|. 297 // Otherwise it fills |result| with the proxy information for |url|.
298 // Completing synchronously means we don't need to query ProxyResolver. 298 // Completing synchronously means we don't need to query ProxyResolver.
299 int TryToCompleteSynchronously(const GURL& url, ProxyInfo* result); 299 int TryToCompleteSynchronously(const GURL& url, ProxyInfo* result);
300 300
301 // Cancels all of the requests sent to the ProxyResolver. These will be 301 // Cancels all of the requests sent to the ProxyResolver. These will be
302 // restarted when calling ResumeAllPendingRequests(). 302 // restarted when calling SetReady().
303 void SuspendAllPendingRequests(); 303 void SuspendAllPendingRequests();
304 304
305 // Advances the current state to |STATE_READY|, and resumes any pending 305 // Advances the current state to |STATE_READY|, and resumes any pending
306 // requests which had been stalled waiting for initialization to complete. 306 // requests which had been stalled waiting for initialization to complete.
307 void SetReady(); 307 void SetReady();
308 308
309 // Returns true if |pending_requests_| contains |req|. 309 // Returns true if |pending_requests_| contains |req|.
310 bool ContainsPendingRequest(PacRequest* req); 310 bool ContainsPendingRequest(PacRequest* req);
311 311
312 // Removes |req| from the list of pending requests. 312 // Removes |req| from the list of pending requests.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 base::WaitableEvent event_; 433 base::WaitableEvent event_;
434 CompletionCallback callback_; 434 CompletionCallback callback_;
435 ProxyInfo proxy_info_; 435 ProxyInfo proxy_info_;
436 int result_; 436 int result_;
437 }; 437 };
438 438
439 } // namespace net 439 } // namespace net
440 440
441 #endif // NET_PROXY_PROXY_SERVICE_H_ 441 #endif // NET_PROXY_PROXY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698