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

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

Issue 1604045: Fix crash on IP address change. (Closed)
Patch Set: Merge conflict Created 10 years, 8 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 | « net/base/host_resolver_impl_unittest.cc ('k') | net/base/mock_host_resolver.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BASE_MAPPED_HOST_RESOLVER_H_ 5 #ifndef NET_BASE_MAPPED_HOST_RESOLVER_H_
6 #define NET_BASE_MAPPED_HOST_RESOLVER_H_ 6 #define NET_BASE_MAPPED_HOST_RESOLVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 // HostResolver methods: 26 // HostResolver methods:
27 virtual int Resolve(const RequestInfo& info, 27 virtual int Resolve(const RequestInfo& info,
28 AddressList* addresses, 28 AddressList* addresses,
29 CompletionCallback* callback, 29 CompletionCallback* callback,
30 RequestHandle* out_req, 30 RequestHandle* out_req,
31 const BoundNetLog& net_log); 31 const BoundNetLog& net_log);
32 virtual void CancelRequest(RequestHandle req); 32 virtual void CancelRequest(RequestHandle req);
33 virtual void AddObserver(Observer* observer); 33 virtual void AddObserver(Observer* observer);
34 virtual void RemoveObserver(Observer* observer); 34 virtual void RemoveObserver(Observer* observer);
35 virtual void Flush() { impl_->Flush(); }
36 virtual HostResolverImpl* GetAsHostResolverImpl(); 35 virtual HostResolverImpl* GetAsHostResolverImpl();
37 36
38 // Adds a rule to this mapper. The format of the rule can be one of: 37 // Adds a rule to this mapper. The format of the rule can be one of:
39 // 38 //
40 // "MAP" <hostname_pattern> <replacement_host> [":" <replacement_port>] 39 // "MAP" <hostname_pattern> <replacement_host> [":" <replacement_port>]
41 // "EXCLUDE" <hostname_pattern> 40 // "EXCLUDE" <hostname_pattern>
42 // 41 //
43 // The <replacement_host> can be either a hostname, or an IP address literal. 42 // The <replacement_host> can be either a hostname, or an IP address literal.
44 // 43 //
45 // Returns true if the rule was successfully parsed and added. 44 // Returns true if the rule was successfully parsed and added.
(...skipping 26 matching lines...) Expand all
72 71
73 scoped_refptr<HostResolver> impl_; 72 scoped_refptr<HostResolver> impl_;
74 73
75 MapRuleList map_rules_; 74 MapRuleList map_rules_;
76 ExclusionRuleList exclusion_rules_; 75 ExclusionRuleList exclusion_rules_;
77 }; 76 };
78 77
79 } // namespace net 78 } // namespace net
80 79
81 #endif // NET_BASE_MAPPED_HOST_RESOLVER_H_ 80 #endif // NET_BASE_MAPPED_HOST_RESOLVER_H_
OLDNEW
« no previous file with comments | « net/base/host_resolver_impl_unittest.cc ('k') | net/base/mock_host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698