| OLD | NEW | 
| (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_ | 
| OLD | NEW |