OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 thread_safe_sender()->Send(message); | 1515 thread_safe_sender()->Send(message); |
1516 | 1516 |
1517 return result; | 1517 return result; |
1518 } | 1518 } |
1519 | 1519 |
1520 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { | 1520 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { |
1521 notify_webkit_of_modal_loop_ = false; | 1521 notify_webkit_of_modal_loop_ = false; |
1522 } | 1522 } |
1523 | 1523 |
1524 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { | 1524 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { |
1525 ObserverListBase<RenderProcessObserver>::Iterator it(&observers_); | 1525 base::ObserverListBase<RenderProcessObserver>::Iterator it(&observers_); |
1526 RenderProcessObserver* observer; | 1526 RenderProcessObserver* observer; |
1527 while ((observer = it.GetNext()) != NULL) { | 1527 while ((observer = it.GetNext()) != NULL) { |
1528 if (observer->OnControlMessageReceived(msg)) | 1528 if (observer->OnControlMessageReceived(msg)) |
1529 return true; | 1529 return true; |
1530 } | 1530 } |
1531 | 1531 |
1532 // Some messages are handled by delegates. | 1532 // Some messages are handled by delegates. |
1533 if (appcache_dispatcher_->OnMessageReceived(msg) || | 1533 if (appcache_dispatcher_->OnMessageReceived(msg) || |
1534 dom_storage_dispatcher_->OnMessageReceived(msg) || | 1534 dom_storage_dispatcher_->OnMessageReceived(msg) || |
1535 embedded_worker_dispatcher_->OnMessageReceived(msg)) { | 1535 embedded_worker_dispatcher_->OnMessageReceived(msg)) { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 } | 1899 } |
1900 | 1900 |
1901 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1901 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
1902 size_t erased = | 1902 size_t erased = |
1903 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1903 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
1904 routing_id_); | 1904 routing_id_); |
1905 DCHECK_EQ(1u, erased); | 1905 DCHECK_EQ(1u, erased); |
1906 } | 1906 } |
1907 | 1907 |
1908 } // namespace content | 1908 } // namespace content |
OLD | NEW |