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

Unified Diff: chrome/browser/debugger/devtools_remote_listen_socket.h

Issue 8635005: DevTools: remove support for legacy remote debugger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests compilation Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/debugger/devtools_remote.h ('k') | chrome/browser/debugger/devtools_remote_listen_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_remote_listen_socket.h
diff --git a/chrome/browser/debugger/devtools_remote_listen_socket.h b/chrome/browser/debugger/devtools_remote_listen_socket.h
deleted file mode 100644
index ec97c8662f31eb5002ed3c7bacf7093d427654ee..0000000000000000000000000000000000000000
--- a/chrome/browser/debugger/devtools_remote_listen_socket.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_H_
-#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_H_
-#pragma once
-
-#include <string>
-
-#include "chrome/browser/debugger/devtools_remote_message.h"
-#include "net/base/listen_socket.h"
-
-class DevToolsRemoteListener;
-
-// Listens to remote debugger incoming connections, handles the V8ARDP protocol
-// socket input and invokes the message handler when appropriate.
-class DevToolsRemoteListenSocket
- : public net::ListenSocket,
- public net::ListenSocket::ListenSocketDelegate {
- public:
- // Listen on port for the specified IP address. Use 127.0.0.1 to only
- // accept local connections.
- static DevToolsRemoteListenSocket* Listen(
- const std::string& ip,
- int port,
- DevToolsRemoteListener* message_listener);
-
- protected:
- virtual void Listen() OVERRIDE;
- virtual void Accept() OVERRIDE;
- virtual void Close() OVERRIDE;
- virtual void SendInternal(const char* bytes, int len) OVERRIDE;
-
- private:
- virtual ~DevToolsRemoteListenSocket();
-
- // net::ListenSocket::ListenSocketDelegate interface
- virtual void DidAccept(net::ListenSocket *server,
- net::ListenSocket *connection) OVERRIDE;
- virtual void DidRead(net::ListenSocket *connection,
- const char* data, int len) OVERRIDE;
- virtual void DidClose(net::ListenSocket *connection) OVERRIDE;
-
- // The protocol states while reading socket input
- enum State {
- INVALID = 0, // Bad handshake message received, retry
- HANDSHAKE = 1, // Receiving handshake message
- HEADERS = 2, // Receiving protocol headers
- PAYLOAD = 3 // Receiving payload
- };
-
- DevToolsRemoteListenSocket(SOCKET s,
- DevToolsRemoteListener *listener);
- void StartNextField();
- void HandleMessage();
- void DispatchField();
- const std::string& GetHeader(const std::string& header_name,
- const std::string& default_value) const;
-
- State state_;
- DevToolsRemoteMessage::HeaderMap header_map_;
- std::string protocol_field_;
- std::string payload_;
- int32 remaining_payload_length_;
- DevToolsRemoteListener* message_listener_;
- bool cr_received_;
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsRemoteListenSocket);
-};
-
-#endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_REMOTE_LISTEN_SOCKET_H_
« no previous file with comments | « chrome/browser/debugger/devtools_remote.h ('k') | chrome/browser/debugger/devtools_remote_listen_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698