OLD | NEW |
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/browser/shared_worker/shared_worker_host.h" | 5 #include "content/browser/shared_worker/shared_worker_host.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "content/browser/devtools/embedded_worker_devtools_manager.h" | 8 #include "content/browser/devtools/embedded_worker_devtools_manager.h" |
9 #include "content/browser/frame_host/render_frame_host_delegate.h" | 9 #include "content/browser/frame_host/render_frame_host_delegate.h" |
10 #include "content/browser/frame_host/render_frame_host_impl.h" | 10 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 11 #include "content/browser/message_port_message_filter.h" |
11 #include "content/browser/message_port_service.h" | 12 #include "content/browser/message_port_service.h" |
12 #include "content/browser/shared_worker/shared_worker_instance.h" | 13 #include "content/browser/shared_worker/shared_worker_instance.h" |
13 #include "content/browser/shared_worker/shared_worker_message_filter.h" | 14 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
14 #include "content/browser/shared_worker/shared_worker_service_impl.h" | 15 #include "content/browser/shared_worker/shared_worker_service_impl.h" |
15 #include "content/browser/shared_worker/worker_document_set.h" | 16 #include "content/browser/shared_worker/worker_document_set.h" |
16 #include "content/common/view_messages.h" | 17 #include "content/common/view_messages.h" |
17 #include "content/common/worker_messages.h" | 18 #include "content/common/worker_messages.h" |
18 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
20 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 int message_port_id) { | 347 int message_port_id) { |
347 for (FilterList::iterator i = filters_.begin(); i != filters_.end(); ++i) { | 348 for (FilterList::iterator i = filters_.begin(); i != filters_.end(); ++i) { |
348 if (i->filter() == filter && i->route_id() == route_id) { | 349 if (i->filter() == filter && i->route_id() == route_id) { |
349 i->set_message_port_id(message_port_id); | 350 i->set_message_port_id(message_port_id); |
350 return; | 351 return; |
351 } | 352 } |
352 } | 353 } |
353 } | 354 } |
354 | 355 |
355 } // namespace content | 356 } // namespace content |
OLD | NEW |