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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const net::CompletionCallback& callback, 78 const net::CompletionCallback& callback,
79 RequestHandle* request_handle, 79 RequestHandle* request_handle,
80 const BoundNetLog& /*net_log*/) OVERRIDE; 80 const BoundNetLog& /*net_log*/) OVERRIDE;
81 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE; 81 virtual void CancelRequest(RequestHandle request_handle) OVERRIDE;
82 virtual LoadState GetLoadState(RequestHandle request_handle) const OVERRIDE; 82 virtual LoadState GetLoadState(RequestHandle request_handle) const OVERRIDE;
83 virtual int SetPacScript( 83 virtual int SetPacScript(
84 const scoped_refptr<ProxyResolverScriptData>& script_data, 84 const scoped_refptr<ProxyResolverScriptData>& script_data,
85 const net::CompletionCallback& callback) OVERRIDE; 85 const net::CompletionCallback& callback) OVERRIDE;
86 virtual void CancelSetPacScript() OVERRIDE; 86 virtual void CancelSetPacScript() OVERRIDE;
87 87
88 const RequestsList& pending_requests() const { 88 const RequestsList& pending_requests() const { return pending_requests_; }
89 return pending_requests_;
90 }
91 89
92 const RequestsList& cancelled_requests() const { 90 const RequestsList& cancelled_requests() const { return cancelled_requests_; }
93 return cancelled_requests_;
94 }
95 91
96 SetPacScriptRequest* pending_set_pac_script_request() const; 92 SetPacScriptRequest* pending_set_pac_script_request() const;
97 93
98 bool has_pending_set_pac_script_request() const { 94 bool has_pending_set_pac_script_request() const {
99 return pending_set_pac_script_request_.get() != NULL; 95 return pending_set_pac_script_request_.get() != NULL;
100 } 96 }
101 97
102 void RemovePendingRequest(Request* request); 98 void RemovePendingRequest(Request* request);
103 99
104 void RemovePendingSetPacScriptRequest(SetPacScriptRequest* request); 100 void RemovePendingSetPacScriptRequest(SetPacScriptRequest* request);
(...skipping 15 matching lines...) Expand all
120 116
121 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase { 117 class MockAsyncProxyResolverExpectsBytes : public MockAsyncProxyResolverBase {
122 public: 118 public:
123 MockAsyncProxyResolverExpectsBytes() 119 MockAsyncProxyResolverExpectsBytes()
124 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {} 120 : MockAsyncProxyResolverBase(true /*expects_pac_bytes*/) {}
125 }; 121 };
126 122
127 } // namespace net 123 } // namespace net
128 124
129 #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