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

Side by Side Diff: content/browser/web_contents/web_contents_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
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/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 485
486 bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host, 486 bool WebContentsImpl::OnMessageReceived(RenderViewHost* render_view_host,
487 RenderFrameHost* render_frame_host, 487 RenderFrameHost* render_frame_host,
488 const IPC::Message& message) { 488 const IPC::Message& message) {
489 DCHECK(render_view_host || render_frame_host); 489 DCHECK(render_view_host || render_frame_host);
490 if (GetWebUI() && 490 if (GetWebUI() &&
491 static_cast<WebUIImpl*>(GetWebUI())->OnMessageReceived(message)) { 491 static_cast<WebUIImpl*>(GetWebUI())->OnMessageReceived(message)) {
492 return true; 492 return true;
493 } 493 }
494 494
495 ObserverListBase<WebContentsObserver>::Iterator it(&observers_); 495 base::ObserverListBase<WebContentsObserver>::Iterator it(&observers_);
496 WebContentsObserver* observer; 496 WebContentsObserver* observer;
497 if (render_frame_host) { 497 if (render_frame_host) {
498 while ((observer = it.GetNext()) != NULL) 498 while ((observer = it.GetNext()) != NULL)
499 if (observer->OnMessageReceived(message, render_frame_host)) 499 if (observer->OnMessageReceived(message, render_frame_host))
500 return true; 500 return true;
501 } else { 501 } else {
502 while ((observer = it.GetNext()) != NULL) 502 while ((observer = it.GetNext()) != NULL)
503 if (observer->OnMessageReceived(message)) 503 if (observer->OnMessageReceived(message))
504 return true; 504 return true;
505 } 505 }
(...skipping 3929 matching lines...) Expand 10 before | Expand all | Expand 10 after
4435 player_map->erase(it); 4435 player_map->erase(it);
4436 } 4436 }
4437 4437
4438 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4438 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4439 force_disable_overscroll_content_ = force_disable; 4439 force_disable_overscroll_content_ = force_disable;
4440 if (view_) 4440 if (view_)
4441 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4441 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4442 } 4442 }
4443 4443
4444 } // namespace content 4444 } // namespace content
OLDNEW
« no previous file with comments | « components/renderer_context_menu/render_view_context_menu_base.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698