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

Side by Side Diff: jingle/glue/dummy_chrome_socketserver.h

Issue 9455070: Remove the dependency to ws2_32.dll from talk_base::ThreadManager and talk_base::Thread. (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 10 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
6 #define JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
7
8 #include "third_party/libjingle/source/talk/base/messagequeue.h"
9 #include "third_party/libjingle/source/talk/base/socketserver.h"
10
11 namespace jingle_glue {
12
13 // Dummy implementation of talk_base::SocketServer for chrome
14 // usage. Chrome doesn't need talk_base::PhysicalSocketServer
15 // for message pumping.
16
17 class DummyChromeSocketServer : public talk_base::SocketServer {
18 virtual bool Wait(int cms, bool process_io) OVERRIDE {
19 NOTREACHED();
20 return false;
21 }
22
23 virtual void WakeUp() OVERRIDE {
24 NOTREACHED();
25 }
26
27 virtual talk_base::Socket* CreateSocket(int type) OVERRIDE {
28 NOTREACHED();
29 return NULL;
30 }
31
32 // Returns a new socket for nonblocking communication. The type can be
33 // SOCK_DGRAM and SOCK_STREAM.
34 virtual talk_base::AsyncSocket* CreateAsyncSocket(int type) OVERRIDE {
35 NOTREACHED();
36 return NULL;
37 }
38 };
39
40 } // namespace jingle_glue
41
42 #endif // JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
OLDNEW
« no previous file with comments | « no previous file | jingle/glue/thread_wrapper.cc » ('j') | third_party/libjingle/overrides/talk/base/messagequeue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698