Skip to content

Commit

Permalink
CreateWebSocket signature change.
Browse files Browse the repository at this point in the history
Chromium change:

https://chromium.googlesource.com/chromium/src/+/3e973f964e7712b9ac7ef02f77739f13ae8d1dff

commit 3e973f964e7712b9ac7ef02f77739f13ae8d1dff
Author: Julie Jeongeun Kim <[email protected]>
Date:   Thu Aug 22 08:02:40 2019 +0000

    Convert WebSocketHandshakeClientPtr to new Mojo types

    This CL converts WebSocketHandshakeClientPtr to new Mojo types.
    It updates CreateWebSocket from network_context.mojom
    and Connect from websocket_connector.mojom and methods
    and members which implements them.

    Bug: 955171, 978694
  • Loading branch information
mkarolin committed Oct 3, 2019
1 parent dd73978 commit 8bf4fd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion browser/brave_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ void BraveContentBrowserClient::CreateWebSocket(
const GURL& url,
const GURL& site_for_cookies,
const base::Optional<std::string>& user_agent,
network::mojom::WebSocketHandshakeClientPtr handshake_client) {
mojo::PendingRemote<network::mojom::WebSocketHandshakeClient>
handshake_client) {
auto* proxy = BraveProxyingWebSocket::ProxyWebSocket(
frame,
std::move(factory),
Expand Down
3 changes: 2 additions & 1 deletion browser/brave_content_browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class BraveContentBrowserClient : public ChromeContentBrowserClient {
const GURL& url,
const GURL& site_for_cookies,
const base::Optional<std::string>& user_agent,
network::mojom::WebSocketHandshakeClientPtr handshake_client) override;
mojo::PendingRemote<network::mojom::WebSocketHandshakeClient>
handshake_client) override;

void MaybeHideReferrer(content::BrowserContext* browser_context,
const GURL& request_url,
Expand Down

0 comments on commit 8bf4fd9

Please sign in to comment.