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

Side by Side Diff: net/base/fixed_host_resolver.h

Issue 345034: Add a command line flag to force all network traffic through a particular ser... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/base/fixed_host_resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_BASE_FIXED_HOST_RESOLVER_H_
6 #define NET_BASE_FIXED_HOST_RESOLVER_H_
7
8 #include <string>
9
10 #include "net/base/address_list.h"
11 #include "net/base/host_resolver.h"
12
13 namespace net {
14
15 // A FixedHostResolver resolves all addresses to a single address.
16 class FixedHostResolver : public HostResolver {
17 public:
18 // |host_and_port| is a string representing the resolution.
19 // example: foo.myproxy.com:1234
20 explicit FixedHostResolver(const std::string& host_and_port);
21
22 // HostResolver methods:
23 virtual int Resolve(const RequestInfo& info,
24 AddressList* addresses,
25 CompletionCallback* callback,
26 RequestHandle* out_req,
27 LoadLog* load_log);
28 virtual void CancelRequest(RequestHandle req) {}
29 virtual void AddObserver(Observer* observer) {}
30 virtual void RemoveObserver(Observer* observer) {}
31 virtual HostCache* GetHostCache() { return NULL; }
32 virtual void Shutdown() {}
33
34 private:
35 AddressList address_;
36 bool initialized_;
37 };
38
39 } // namespace net
40
41 #endif // NET_BASE_MOCK_HOST_RESOLVER_H_
42
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/base/fixed_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698