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

Side by Side Diff: chrome/common/net/notifier/base/nethelpers.h

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ 5 #ifndef CHROME_COMMON_NET_NOTIFIER_BASE_NETHELPERS_H_
6 #define CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ 6 #define CHROME_COMMON_NET_NOTIFIER_BASE_NETHELPERS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
11 #include <cstddef> 11 #include <cstddef>
12 #include <netdb.h> 12 #include <netdb.h>
13 #elif defined(OS_WIN) 13 #elif defined(OS_WIN)
14 #include <winsock2.h> 14 #include <winsock2.h>
15 #endif 15 #endif
16 16
17 namespace notifier { 17 namespace notifier {
18 18
19 hostent* SafeGetHostByName(const char* hostname, hostent* host, 19 hostent* SafeGetHostByName(const char* hostname, hostent* host,
20 char* buffer, size_t buffer_len, 20 char* buffer, size_t buffer_len,
21 int* herrno); 21 int* herrno);
22 22
23 void FreeHostEnt(hostent* host); 23 void FreeHostEnt(hostent* host);
24 24
25 } // namespace notifier 25 } // namespace notifier
26 26
27 #endif // CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETHELPERS_H_ 27 #endif // CHROME_COMMON_NET_NOTIFIER_BASE_NETHELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698