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

Side by Side Diff: content/renderer/websharedworker_proxy.cc

Issue 1575763002: Make `content` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_disallow_copy_assign_linux_only
Patch Set: no deps Created 4 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/websharedworker_proxy.h" 5 #include "content/renderer/websharedworker_proxy.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "content/child/webmessageportchannel_impl.h" 9 #include "content/child/webmessageportchannel_impl.h"
10 #include "content/common/message_router.h" 10 #include "content/common/message_router.h"
11 #include "content/common/view_messages.h" 11 #include "content/common/view_messages.h"
12 #include "content/common/worker_messages.h" 12 #include "content/common/worker_messages.h"
13 #include "third_party/WebKit/public/platform/WebURL.h" 13 #include "third_party/WebKit/public/platform/WebURL.h"
14 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" 14 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 WebSharedWorkerProxy::WebSharedWorkerProxy(MessageRouter* router, 18 WebSharedWorkerProxy::WebSharedWorkerProxy(MessageRouter* router,
19 unsigned long long document_id, 19 unsigned long long document_id,
20 int route_id, 20 int route_id,
21 int render_frame_route_id) 21 int render_frame_route_id)
jam 2016/01/13 16:17:50 ditto here for the two unused params
mlamouri (slow - plz ping) 2016/01/14 20:14:01 Done.
22 : route_id_(route_id), 22 : route_id_(route_id),
23 render_frame_route_id_(render_frame_route_id),
24 router_(router), 23 router_(router),
25 document_id_(document_id),
26 pending_route_id_(route_id),
27 connect_listener_(NULL), 24 connect_listener_(NULL),
28 created_(false) { 25 created_(false) {
29 router_->AddRoute(route_id_, this); 26 router_->AddRoute(route_id_, this);
30 } 27 }
31 28
32 WebSharedWorkerProxy::~WebSharedWorkerProxy() { 29 WebSharedWorkerProxy::~WebSharedWorkerProxy() {
33 Disconnect(); 30 Disconnect();
34 31
35 // Free up any unsent queued messages. 32 // Free up any unsent queued messages.
36 for (size_t i = 0; i < queued_messages_.size(); ++i) 33 for (size_t i = 0; i < queued_messages_.size(); ++i)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 115 }
119 116
120 void WebSharedWorkerProxy::OnWorkerConnected() { 117 void WebSharedWorkerProxy::OnWorkerConnected() {
121 if (connect_listener_) { 118 if (connect_listener_) {
122 // This can result in this object being freed. 119 // This can result in this object being freed.
123 connect_listener_->connected(); 120 connect_listener_->connected();
124 } 121 }
125 } 122 }
126 123
127 } // namespace content 124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698