| 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
 | 
| 
 | 
| 
 |