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

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

Issue 1152983004: Move ObserverList to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698