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

Unified Diff: content/browser/websockets/websocket_impl.h

Issue 2248743003: [not for commit] try out fix with darin's cl. Base URL: https://chromium.googlesource.com/chromium/src.git@44_fix_copy_assign
Patch Set: 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/websockets/websocket_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/websockets/websocket_impl.h
diff --git a/content/browser/websockets/websocket_impl.h b/content/browser/websockets/websocket_impl.h
index fa3b5d83a6692e1876ec9df903468a8bbee895a9..77210a13b9ea64d01e3db5d8b3197db0ba6c4b66 100644
--- a/content/browser/websockets/websocket_impl.h
+++ b/content/browser/websockets/websocket_impl.h
@@ -15,8 +15,8 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "content/common/content_export.h"
-#include "content/common/websocket.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "third_party/WebKit/public/platform/modules/websockets/websocket.mojom.h"
class GURL;
@@ -33,7 +33,7 @@ class StoragePartition;
// Host of net::WebSocketChannel.
class CONTENT_EXPORT WebSocketImpl
- : NON_EXPORTED_BASE(public mojom::WebSocket) {
+ : NON_EXPORTED_BASE(public blink::mojom::WebSocket) {
public:
class Delegate {
public:
@@ -45,7 +45,7 @@ class CONTENT_EXPORT WebSocketImpl
};
WebSocketImpl(Delegate* delegate,
- mojom::WebSocketRequest request,
+ blink::mojom::WebSocketRequest request,
int frame_id,
base::TimeDelta delay);
~WebSocketImpl() override;
@@ -54,18 +54,18 @@ class CONTENT_EXPORT WebSocketImpl
// This function is virtual for testing.
virtual void GoAway();
- // mojom::WebSocket methods:
+ // blink::mojom::WebSocket methods:
void AddChannelRequest(const GURL& url,
- mojo::Array<mojo::String> requested_protocols,
+ const std::vector<std::string>& requested_protocols,
const url::Origin& origin,
const GURL& first_party_for_cookies,
- const mojo::String& user_agent_override,
- mojom::WebSocketClientPtr client) override;
- void SendFrame(bool fin, mojom::WebSocketMessageType type,
- mojo::Array<uint8_t> data) override;
+ const std::string& user_agent_override,
+ blink::mojom::WebSocketClientPtr client) override;
+ void SendFrame(bool fin, blink::mojom::WebSocketMessageType type,
+ const std::vector<uint8_t>& data) override;
void SendFlowControl(int64_t quota) override;
void StartClosingHandshake(uint16_t code,
- const mojo::String& reason) override;
+ const std::string& reason) override;
bool handshake_succeeded() const { return handshake_succeeded_; }
void OnHandshakeSucceeded() { handshake_succeeded_ = true; }
@@ -81,9 +81,9 @@ class CONTENT_EXPORT WebSocketImpl
const std::string& user_agent_override);
Delegate* delegate_;
- mojo::Binding<mojom::WebSocket> binding_;
+ mojo::Binding<blink::mojom::WebSocket> binding_;
- mojom::WebSocketClientPtr client_;
+ blink::mojom::WebSocketClientPtr client_;
// The channel we use to send events to the network.
std::unique_ptr<net::WebSocketChannel> channel_;
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/websockets/websocket_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698