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

Unified Diff: chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.h

Issue 183893041: Move sockets APIs out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename api targets Created 6 years, 9 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: chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.h
diff --git a/chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.h b/chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.h
deleted file mode 100644
index 439b85714cb141a47823c8248319c2969e35048f..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.h
+++ /dev/null
@@ -1,179 +0,0 @@
-// Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_
-
-#include "chrome/browser/extensions/api/socket/socket_api.h"
-#include "chrome/common/extensions/api/sockets_tcp_server.h"
-
-namespace extensions {
-class ResumableTCPServerSocket;
-}
-
-namespace extensions {
-namespace api {
-
-class TCPServerSocketAsyncApiFunction : public SocketAsyncApiFunction {
- protected:
- virtual ~TCPServerSocketAsyncApiFunction();
-
- virtual scoped_ptr<SocketResourceManagerInterface>
- CreateSocketResourceManager() OVERRIDE;
-
- ResumableTCPServerSocket* GetTcpSocket(int socket_id);
-};
-
-class SocketsTcpServerCreateFunction : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.create",
- SOCKETS_TCP_SERVER_CREATE)
-
- SocketsTcpServerCreateFunction();
-
- protected:
- virtual ~SocketsTcpServerCreateFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- FRIEND_TEST_ALL_PREFIXES(SocketsTcpServerUnitTest, Create);
- scoped_ptr<sockets_tcp_server::Create::Params> params_;
-};
-
-class SocketsTcpServerUpdateFunction : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.update",
- SOCKETS_TCP_SERVER_UPDATE)
-
- SocketsTcpServerUpdateFunction();
-
- protected:
- virtual ~SocketsTcpServerUpdateFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::Update::Params> params_;
-};
-
-class SocketsTcpServerSetPausedFunction
- : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.setPaused",
- SOCKETS_TCP_SERVER_SETPAUSED)
-
- SocketsTcpServerSetPausedFunction();
-
- protected:
- virtual ~SocketsTcpServerSetPausedFunction();
-
- // AsyncApiFunction
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::SetPaused::Params> params_;
- TCPServerSocketEventDispatcher* socket_event_dispatcher_;
-};
-
-class SocketsTcpServerListenFunction
- : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.listen",
- SOCKETS_TCP_SERVER_LISTEN)
-
- SocketsTcpServerListenFunction();
-
- protected:
- virtual ~SocketsTcpServerListenFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::Listen::Params> params_;
- TCPServerSocketEventDispatcher* socket_event_dispatcher_;
-};
-
-class SocketsTcpServerDisconnectFunction
- : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.disconnect",
- SOCKETS_TCP_SERVER_DISCONNECT)
-
- SocketsTcpServerDisconnectFunction();
-
- protected:
- virtual ~SocketsTcpServerDisconnectFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::Disconnect::Params> params_;
-};
-
-class SocketsTcpServerCloseFunction : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.close",
- SOCKETS_TCP_SERVER_CLOSE)
-
- SocketsTcpServerCloseFunction();
-
- protected:
- virtual ~SocketsTcpServerCloseFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::Close::Params> params_;
-};
-
-class SocketsTcpServerGetInfoFunction : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.getInfo",
- SOCKETS_TCP_SERVER_GETINFO)
-
- SocketsTcpServerGetInfoFunction();
-
- protected:
- virtual ~SocketsTcpServerGetInfoFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-
- private:
- scoped_ptr<sockets_tcp_server::GetInfo::Params> params_;
-};
-
-class SocketsTcpServerGetSocketsFunction
- : public TCPServerSocketAsyncApiFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("sockets.tcpServer.getSockets",
- SOCKETS_TCP_SERVER_GETSOCKETS)
-
- SocketsTcpServerGetSocketsFunction();
-
- protected:
- virtual ~SocketsTcpServerGetSocketsFunction();
-
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
-};
-
-} // namespace api
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_TCP_SERVER_SOCKETS_TCP_SERVER_API_H_

Powered by Google App Engine
This is Rietveld 408576698