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

Side by Side Diff: content/public/common/navigator_connect_client.cc

Issue 861373002: Refactor navigator.connect code to make it more flexible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/navigator_connect_types.h" 5 #include "content/public/common/navigator_connect_client.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 CrossOriginServiceWorkerClient::CrossOriginServiceWorkerClient() 9 NavigatorConnectClient::NavigatorConnectClient() : message_port_id(-1) {
10 : message_port_id(-1) {
11 } 10 }
12 11
13 CrossOriginServiceWorkerClient::CrossOriginServiceWorkerClient( 12 NavigatorConnectClient::NavigatorConnectClient(const GURL& target_url,
14 const GURL& target_url, 13 const GURL& origin,
15 const GURL& origin, 14 int message_port_id)
16 int message_port_id)
17 : target_url(target_url), origin(origin), message_port_id(message_port_id) { 15 : target_url(target_url), origin(origin), message_port_id(message_port_id) {
18 } 16 }
19 17
20 CrossOriginServiceWorkerClient::~CrossOriginServiceWorkerClient() { 18 NavigatorConnectClient::~NavigatorConnectClient() {
21 } 19 }
22 20
23 } // namespace content 21 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/navigator_connect_client.h ('k') | content/renderer/service_worker/service_worker_script_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698