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

Side by Side Diff: content/renderer/shared_worker_repository.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: fix unit test 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shared_worker_repository.h" 5 #include "content/renderer/shared_worker_repository.h"
6 6
7 #include "content/child/child_thread_impl.h" 7 #include "content/child/child_thread_impl.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/renderer/render_frame_impl.h" 9 #include "content/renderer/render_frame_impl.h"
10 #include "content/renderer/websharedworker_proxy.h" 10 #include "content/renderer/websharedworker_proxy.h"
(...skipping 27 matching lines...) Expand all
38 params.render_frame_route_id = render_frame()->GetRoutingID(); 38 params.render_frame_route_id = render_frame()->GetRoutingID();
39 params.creation_context_type = creation_context_type; 39 params.creation_context_type = creation_context_type;
40 ViewHostMsg_CreateWorker_Reply reply; 40 ViewHostMsg_CreateWorker_Reply reply;
41 Send(new ViewHostMsg_CreateWorker(params, &reply)); 41 Send(new ViewHostMsg_CreateWorker(params, &reply));
42 if (reply.route_id == MSG_ROUTING_NONE) { 42 if (reply.route_id == MSG_ROUTING_NONE) {
43 *error = reply.error; 43 *error = reply.error;
44 return NULL; 44 return NULL;
45 } 45 }
46 documents_with_workers_.insert(document_id); 46 documents_with_workers_.insert(document_id);
47 return new WebSharedWorkerProxy(ChildThreadImpl::current()->GetRouter(), 47 return new WebSharedWorkerProxy(ChildThreadImpl::current()->GetRouter(),
48 document_id, reply.route_id, 48 reply.route_id);
49 params.render_frame_route_id);
50 } 49 }
51 50
52 void SharedWorkerRepository::documentDetached(DocumentID document) { 51 void SharedWorkerRepository::documentDetached(DocumentID document) {
53 std::set<DocumentID>::iterator iter = documents_with_workers_.find(document); 52 std::set<DocumentID>::iterator iter = documents_with_workers_.find(document);
54 if (iter != documents_with_workers_.end()) { 53 if (iter != documents_with_workers_.end()) {
55 // Notify the browser process that the document has shut down. 54 // Notify the browser process that the document has shut down.
56 Send(new ViewHostMsg_DocumentDetached(document)); 55 Send(new ViewHostMsg_DocumentDetached(document));
57 documents_with_workers_.erase(iter); 56 documents_with_workers_.erase(iter);
58 } 57 }
59 } 58 }
60 59
61 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/service_worker/service_worker_context_client.cc ('k') | content/renderer/websharedworker_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698