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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 921473006: GuestView: Fix message routing across embedder navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 5 years, 10 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 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 const std::vector<AXEventNotificationDetails>& details) { 1867 const std::vector<AXEventNotificationDetails>& details) {
1868 FOR_EACH_OBSERVER( 1868 FOR_EACH_OBSERVER(
1869 WebContentsObserver, observers_, AccessibilityEventReceived(details)); 1869 WebContentsObserver, observers_, AccessibilityEventReceived(details));
1870 } 1870 }
1871 1871
1872 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID( 1872 RenderFrameHost* WebContentsImpl::GetGuestByInstanceID(
1873 int browser_plugin_instance_id) { 1873 int browser_plugin_instance_id) {
1874 BrowserPluginGuestManager* guest_manager = 1874 BrowserPluginGuestManager* guest_manager =
1875 GetBrowserContext()->GetGuestManager(); 1875 GetBrowserContext()->GetGuestManager();
1876 WebContents* guest = guest_manager->GetGuestByInstanceID( 1876 WebContents* guest = guest_manager->GetGuestByInstanceID(
1877 this, browser_plugin_instance_id); 1877 GetRenderProcessHost()->GetID(), browser_plugin_instance_id);
1878 if (!guest) 1878 if (!guest)
1879 return NULL; 1879 return NULL;
1880 return guest->GetMainFrame(); 1880 return guest->GetMainFrame();
1881 } 1881 }
1882 1882
1883 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { 1883 GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() {
1884 return geolocation_service_context_.get(); 1884 return geolocation_service_context_.get();
1885 } 1885 }
1886 1886
1887 void WebContentsImpl::OnShowValidationMessage( 1887 void WebContentsImpl::OnShowValidationMessage(
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
4514 node->render_manager()->ResumeResponseDeferredAtStart(); 4514 node->render_manager()->ResumeResponseDeferredAtStart();
4515 } 4515 }
4516 4516
4517 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4517 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4518 force_disable_overscroll_content_ = force_disable; 4518 force_disable_overscroll_content_ = force_disable;
4519 if (view_) 4519 if (view_)
4520 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4520 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4521 } 4521 }
4522 4522
4523 } // namespace content 4523 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698