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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: jingle/glue/dummy_chrome_socketserver.h
===================================================================
--- jingle/glue/dummy_chrome_socketserver.h (revision 0)
+++ jingle/glue/dummy_chrome_socketserver.h (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
+#define JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
+
+#include "third_party/libjingle/source/talk/base/messagequeue.h"
+#include "third_party/libjingle/source/talk/base/socketserver.h"
+
+namespace jingle_glue {
+
+// Dummy implementation of talk_base::SocketServer for chrome
+// usage. Chrome doesn't need talk_base::PhysicalSocketServer
+// for message pumping.
+
+class DummyChromeSocketServer : public talk_base::SocketServer {
+ virtual bool Wait(int cms, bool process_io) OVERRIDE {
+ NOTREACHED();
+ return false;
+ }
+
+ virtual void WakeUp() OVERRIDE {
+ NOTREACHED();
+ }
+
+ virtual talk_base::Socket* CreateSocket(int type) OVERRIDE {
+ NOTREACHED();
+ return NULL;
+ }
+
+ // Returns a new socket for nonblocking communication. The type can be
+ // SOCK_DGRAM and SOCK_STREAM.
+ virtual talk_base::AsyncSocket* CreateAsyncSocket(int type) OVERRIDE {
+ NOTREACHED();
+ return NULL;
+ }
+};
+
+} // namespace jingle_glue
+
+#endif // JINGLE_GLUE_DUMMY_CHROME_SOCKET_SERVER_H_
Property changes on: jingle\glue\dummy_chrome_socketserver.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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