Index: net/websockets/websocket_channel.h |
diff --git a/net/websockets/websocket_channel.h b/net/websockets/websocket_channel.h |
index 40b76c9f73aa544188d62bb58ed8010ac73dc960..fa7a133a1d764848bb47bf68d48fbe2e91e20f46 100644 |
--- a/net/websockets/websocket_channel.h |
+++ b/net/websockets/websocket_channel.h |
@@ -22,6 +22,10 @@ |
#include "net/websockets/websocket_stream.h" |
#include "url/gurl.h" |
+namespace url { |
+class Origin; |
+} // namespace url |
+ |
namespace net { |
class BoundNetLog; |
@@ -42,7 +46,7 @@ class NET_EXPORT WebSocketChannel { |
typedef base::Callback<scoped_ptr<WebSocketStreamRequest>( |
const GURL&, |
const std::vector<std::string>&, |
- const GURL&, |
+ const url::Origin&, |
URLRequestContext*, |
const BoundNetLog&, |
scoped_ptr<WebSocketStream::ConnectDelegate>)> WebSocketStreamCreator; |
@@ -58,7 +62,7 @@ class NET_EXPORT WebSocketChannel { |
void SendAddChannelRequest( |
const GURL& socket_url, |
const std::vector<std::string>& requested_protocols, |
- const GURL& origin); |
+ const url::Origin& origin); |
// Sends a data frame to the remote side. The frame should usually be no |
// larger than 32KB to prevent the time required to copy the buffers from from |
@@ -96,7 +100,7 @@ class NET_EXPORT WebSocketChannel { |
void SendAddChannelRequestForTesting( |
const GURL& socket_url, |
const std::vector<std::string>& requested_protocols, |
- const GURL& origin, |
+ const url::Origin& origin, |
const WebSocketStreamCreator& creator); |
// The default timout for the closing handshake is a sensible value (see |
@@ -151,7 +155,7 @@ class NET_EXPORT WebSocketChannel { |
void SendAddChannelRequestWithSuppliedCreator( |
const GURL& socket_url, |
const std::vector<std::string>& requested_protocols, |
- const GURL& origin, |
+ const url::Origin& origin, |
const WebSocketStreamCreator& creator); |
// Success callback from WebSocketStream::CreateAndConnectStream(). Reports |