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

Side by Side Diff: net/proxy/mock_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, 2 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
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_MOCK_PROXY_RESOLVER_H_ 5 #ifndef NET_PROXY_MOCK_PROXY_RESOLVER_H_
6 #define NET_PROXY_MOCK_PROXY_RESOLVER_H_ 6 #define NET_PROXY_MOCK_PROXY_RESOLVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 virtual ~MockAsyncProxyResolverBase(); 70 virtual ~MockAsyncProxyResolverBase();
71 71
72 // ProxyResolver implementation: 72 // ProxyResolver implementation:
73 virtual int GetProxyForURL(const GURL& url, 73 virtual int GetProxyForURL(const GURL& url,
74 ProxyInfo* results, 74 ProxyInfo* results,
75 OldCompletionCallback* callback, 75 OldCompletionCallback* callback,
76 RequestHandle* request_handle, 76 RequestHandle* request_handle,
77 const BoundNetLog& /*net_log*/) OVERRIDE; 77 const BoundNetLog& /*net_log*/) OVERRIDE;
78 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE; 78 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE;
79 virtual LoadState GetLoadState(RequestHandle request_handle) const OVERRIDE;
79 virtual int SetPacScript( 80 virtual int SetPacScript(
80 const scoped_refptr<ProxyResolverScriptData>& script_data, 81 const scoped_refptr<ProxyResolverScriptData>& script_data,
81 OldCompletionCallback* callback) OVERRIDE; 82 OldCompletionCallback* callback) OVERRIDE;
82 virtual void CancelSetPacScript() OVERRIDE; 83 virtual void CancelSetPacScript() OVERRIDE;
83 84
84 const RequestsList& pending_requests() const { 85 const RequestsList& pending_requests() const {
85 return pending_requests_; 86 return pending_requests_;
86 } 87 }
87 88
88 const RequestsList& cancelled_requests() const { 89 const RequestsList& cancelled_requests() const {
(...skipping 23 matching lines...) Expand all
112 113
113 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase { 114 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase {
114 public: 115 public:
115 MockAsyncProxyResolverExpectsBytes() 116 MockAsyncProxyResolverExpectsBytes()
116 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {} 117 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {}
117 }; 118 };
118 119
119 } // namespace net 120 } // namespace net
120 121
121 #endif // NET_PROXY_MOCK_PROXY_RESOLVER_H_ 122 #endif // NET_PROXY_MOCK_PROXY_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698