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

Unified Diff: content/common/websocket.h

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 4 years, 4 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: content/common/websocket.h
diff --git a/content/common/websocket.h b/content/common/websocket.h
deleted file mode 100644
index 324e9a100d489b3045780cdf79f9c7ea35affe1e..0000000000000000000000000000000000000000
--- a/content/common/websocket.h
+++ /dev/null
@@ -1,64 +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 CONTENT_COMMON_WEBSOCKET_H_
-#define CONTENT_COMMON_WEBSOCKET_H_
-
-#include <string>
-#include <utility>
-#include <vector>
-
-#include "base/strings/string_split.h"
-#include "base/time/time.h"
-#include "url/gurl.h"
-
-namespace content {
-
-// WebSocket data message types sent between the browser and renderer processes.
-enum WebSocketMessageType {
- WEB_SOCKET_MESSAGE_TYPE_CONTINUATION = 0x0,
- WEB_SOCKET_MESSAGE_TYPE_TEXT = 0x1,
- WEB_SOCKET_MESSAGE_TYPE_BINARY = 0x2,
- WEB_SOCKET_MESSAGE_TYPE_LAST = WEB_SOCKET_MESSAGE_TYPE_BINARY
-};
-
-// Opening handshake request information which will be shown in the inspector.
-// All string data should be encoded to ASCII in the browser process.
-struct WebSocketHandshakeRequest {
- WebSocketHandshakeRequest();
- ~WebSocketHandshakeRequest();
-
- // The request URL
- GURL url;
- // Additional HTTP request headers
- base::StringPairs headers;
- // HTTP request headers raw string
- std::string headers_text;
- // The time that this request is sent
- base::Time request_time;
-};
-
-// Opening handshake response information which will be shown in the inspector.
-// All string data should be encoded to ASCII in the browser process.
-struct WebSocketHandshakeResponse {
- WebSocketHandshakeResponse();
- ~WebSocketHandshakeResponse();
-
- // The request URL
- GURL url;
- // HTTP status code
- int status_code;
- // HTTP status text
- std::string status_text;
- // Additional HTTP response headers
- base::StringPairs headers;
- // HTTP response headers raw string
- std::string headers_text;
- // The time that this response arrives
- base::Time response_time;
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_WEBSOCKET_H_

Powered by Google App Engine
This is Rietveld 408576698