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

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

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 6 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file supports network stack independent notification of progress 5 // This file supports network stack independent notification of progress
6 // towards resolving a hostname. 6 // towards resolving a hostname.
7 7
8 // The observer class supports exactly one active (Add'ed) instance, and in 8 // The observer class supports exactly one active (Add'ed) instance, and in
9 // typical usage, that observer will be Add'ed during process startup, and 9 // typical usage, that observer will be Add'ed during process startup, and
10 // Remove'd during process termination. 10 // Remove'd during process termination.
11 11
12 12
13 #ifndef NET_BASE_DNS_RESOLUTION_OBSERVER_H_ 13 #ifndef NET_BASE_DNS_RESOLUTION_OBSERVER_H_
14 #define NET_BASE_DNS_RESOLUTION_OBSERVER_H_ 14 #define NET_BASE_DNS_RESOLUTION_OBSERVER_H_
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "googleurl/src/gurl.h" 18 class GURL;
19 19
20 namespace net { 20 namespace net {
21 21
22 class DnsResolutionObserver { 22 class DnsResolutionObserver {
23 public: 23 public:
24 virtual ~DnsResolutionObserver() {} 24 virtual ~DnsResolutionObserver() {}
25 25
26 // For each OnStartResolution() notification, there should be a later 26 // For each OnStartResolution() notification, there should be a later
27 // OnFinishResolutionWithStatus() indicating completion of the resolution 27 // OnFinishResolutionWithStatus() indicating completion of the resolution
28 // activity. 28 // activity.
(...skipping 27 matching lines...) Expand all
56 // implementations. This above observer class will relay the notifications 56 // implementations. This above observer class will relay the notifications
57 // to any registered observer. 57 // to any registered observer.
58 void DidStartDnsResolution(const std::string& name, 58 void DidStartDnsResolution(const std::string& name,
59 void* context); 59 void* context);
60 void DidFinishDnsResolutionWithStatus(bool was_resolved, 60 void DidFinishDnsResolutionWithStatus(bool was_resolved,
61 const GURL& url, 61 const GURL& url,
62 void* context); 62 void* context);
63 } // namspace net 63 } // namspace net
64 64
65 #endif // NET_BASE_DNS_RESOLUTION_OBSERVER_H_ 65 #endif // NET_BASE_DNS_RESOLUTION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698