Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / common / navigator_connect_client.h
blob9cc66ec716309c0f4e209facea84abd4a36e3254
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_NAVIGATOR_CONNECT_CLIENT_H_
6 #define CONTENT_PUBLIC_COMMON_NAVIGATOR_CONNECT_CLIENT_H_
8 #include "url/gurl.h"
10 namespace content {
12 // This struct represents a connection to a navigator.connect exposed service.
13 struct NavigatorConnectClient {
14 NavigatorConnectClient();
15 NavigatorConnectClient(const GURL& target_url,
16 const GURL& origin,
17 int message_port_id);
18 ~NavigatorConnectClient();
20 // The URL this client is connected to (or trying to connect to).
21 GURL target_url;
23 // The origin of the client.
24 GURL origin;
26 // Message port ID for the service side message port associated with this
27 // client.
28 int message_port_id;
31 } // namespace content
33 #endif // CONTENT_PUBLIC_COMMON_NAVIGATOR_CONNECT_CLIENT_H_