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

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

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase off trunk 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
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_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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual ~MockAsyncProxyResolverBase(); 69 virtual ~MockAsyncProxyResolverBase();
70 70
71 // ProxyResolver implementation. 71 // ProxyResolver implementation.
72 virtual int GetProxyForURL(const GURL& url, 72 virtual int GetProxyForURL(const GURL& url,
73 ProxyInfo* results, 73 ProxyInfo* results,
74 const net::CompletionCallback& callback, 74 const net::CompletionCallback& callback,
75 RequestHandle* request_handle, 75 RequestHandle* request_handle,
76 const BoundNetLog& /*net_log*/) OVERRIDE; 76 const BoundNetLog& /*net_log*/) OVERRIDE;
77 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE; 77 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE;
78 virtual LoadState GetLoadState(RequestHandle request_handle) const OVERRIDE; 78 virtual LoadState GetLoadState(RequestHandle request_handle) const OVERRIDE;
79 virtual LoadState GetLoadStateThreadSafe(
80 RequestHandle request_handle) const OVERRIDE;
81 virtual int SetPacScript( 79 virtual int SetPacScript(
82 const scoped_refptr<ProxyResolverScriptData>& script_data, 80 const scoped_refptr<ProxyResolverScriptData>& script_data,
83 const net::CompletionCallback& callback) OVERRIDE; 81 const net::CompletionCallback& callback) OVERRIDE;
84 virtual void CancelSetPacScript() OVERRIDE; 82 virtual void CancelSetPacScript() OVERRIDE;
85 83
86 const RequestsList& pending_requests() const { 84 const RequestsList& pending_requests() const {
87 return pending_requests_; 85 return pending_requests_;
88 } 86 }
89 87
90 const RequestsList& cancelled_requests() const { 88 const RequestsList& cancelled_requests() const {
(...skipping 27 matching lines...) Expand all
118 116
119 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase { 117 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase {
120 public: 118 public:
121 MockAsyncProxyResolverExpectsBytes() 119 MockAsyncProxyResolverExpectsBytes()
122 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {} 120 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {}
123 }; 121 };
124 122
125 } // namespace net 123 } // namespace net
126 124
127 #endif // NET_PROXY_MOCK_PROXY_RESOLVER_H_ 125 #endif // NET_PROXY_MOCK_PROXY_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698