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

Side by Side Diff: chrome/browser/sync/notifier/base/async_dns_lookup.h

Issue 194065: Initial commit of sync engine code to browser/sync.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fixes to gtest include path, reverted syncapi. Created 11 years, 3 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
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 CHROME_BROWSER_SYNC_NOTIFIER_BASE_ASYNC_DNS_LOOKUP_H_
6 #define CHROME_BROWSER_SYNC_NOTIFIER_BASE_ASYNC_DNS_LOOKUP_H_
7
8 #include <vector>
9
10 #include "base/scoped_ptr.h"
11 #include "talk/base/signalthread.h"
12
13 namespace talk_base {
14 class SocketAddress;
15 class Task;
16 }
17
18 namespace notifier {
19
20 class AsyncDNSLookup : public talk_base::SignalThread {
21 public:
22 explicit AsyncDNSLookup(const talk_base::SocketAddress& server);
23 virtual ~AsyncDNSLookup();
24
25 const int error() const {
26 return error_;
27 }
28
29 const std::vector<uint32>& ip_list() const {
30 return ip_list_;
31 }
32
33 protected:
34 // SignalThread Interface
35 virtual void DoWork();
36 virtual void OnMessage(talk_base::Message* message);
37
38 private:
39 void OnTimeout();
40
41 scoped_ptr<talk_base::SocketAddress> server_;
42 talk_base::CriticalSection cs_;
43 int error_;
44 std::vector<uint32> ip_list_;
45
46 DISALLOW_COPY_AND_ASSIGN(AsyncDNSLookup);
47 };
idana 2009/09/10 05:44:37 Add two blank missing blank lines below.
48 } // namespace notifier
49 #endif // CHROME_BROWSER_SYNC_NOTIFIER_BASE_ASYNC_DNS_LOOKUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698