Chromium Code Reviews| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 825 | 825 |
| 826 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { | 826 void RenderViewHostImpl::RequestFindMatchRects(int current_version) { |
| 827 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); | 827 Send(new ViewMsg_FindMatchRects(GetRoutingID(), current_version)); |
| 828 } | 828 } |
| 829 | 829 |
| 830 void RenderViewHostImpl::DisableFullscreenEncryptedMediaPlayback() { | 830 void RenderViewHostImpl::DisableFullscreenEncryptedMediaPlayback() { |
| 831 media_player_manager_->DisableFullscreenEncryptedMediaPlayback(); | 831 media_player_manager_->DisableFullscreenEncryptedMediaPlayback(); |
| 832 } | 832 } |
| 833 #endif | 833 #endif |
| 834 | 834 |
| 835 void RenderViewHostImpl::PauseGeolocation() { | |
| 836 BrowserThread::PostTask( | |
| 837 BrowserThread::IO, FROM_HERE, | |
| 838 base::Bind(&GeolocationDispatcherHost::PauseOrResume, | |
| 839 base::Unretained( | |
| 840 static_cast<RenderProcessHostImpl*>(GetProcess())-> | |
| 841 geolocation_dispatcher_host()), | |
| 842 GetRoutingID(), true)); | |
| 843 } | |
| 844 | |
| 845 void RenderViewHostImpl::ResumeGeolocation() { | |
| 846 BrowserThread::PostTask( | |
| 847 BrowserThread::IO, FROM_HERE, | |
| 848 base::Bind(&GeolocationDispatcherHost::PauseOrResume, | |
| 849 base::Unretained( | |
|
joth
2013/11/08 20:41:14
GeolocationDispatcherHost is refcounted so the Unr
benm (inactive)
2013/11/08 21:10:28
Perfect, thanks.
| |
| 850 static_cast<RenderProcessHostImpl*>(GetProcess())-> | |
| 851 geolocation_dispatcher_host()), | |
| 852 GetRoutingID(), false)); | |
| 853 } | |
| 854 | |
| 835 void RenderViewHostImpl::DragTargetDragEnter( | 855 void RenderViewHostImpl::DragTargetDragEnter( |
| 836 const DropData& drop_data, | 856 const DropData& drop_data, |
| 837 const gfx::Point& client_pt, | 857 const gfx::Point& client_pt, |
| 838 const gfx::Point& screen_pt, | 858 const gfx::Point& screen_pt, |
| 839 WebDragOperationsMask operations_allowed, | 859 WebDragOperationsMask operations_allowed, |
| 840 int key_modifiers) { | 860 int key_modifiers) { |
| 841 const int renderer_id = GetProcess()->GetID(); | 861 const int renderer_id = GetProcess()->GetID(); |
| 842 ChildProcessSecurityPolicyImpl* policy = | 862 ChildProcessSecurityPolicyImpl* policy = |
| 843 ChildProcessSecurityPolicyImpl::GetInstance(); | 863 ChildProcessSecurityPolicyImpl::GetInstance(); |
| 844 | 864 |
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2269 void RenderViewHostImpl::AttachToFrameTree() { | 2289 void RenderViewHostImpl::AttachToFrameTree() { |
| 2270 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2290 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 2271 | 2291 |
| 2272 frame_tree->SwapMainFrame(main_render_frame_host_.get()); | 2292 frame_tree->SwapMainFrame(main_render_frame_host_.get()); |
| 2273 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2293 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
| 2274 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2294 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
| 2275 } | 2295 } |
| 2276 } | 2296 } |
| 2277 | 2297 |
| 2278 } // namespace content | 2298 } // namespace content |
| OLD | NEW |