| 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/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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 3651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3662 return size; | 3662 return size; |
| 3663 } | 3663 } |
| 3664 | 3664 |
| 3665 void WebContentsImpl::OnFrameRemoved( | 3665 void WebContentsImpl::OnFrameRemoved( |
| 3666 RenderViewHostImpl* render_view_host, | 3666 RenderViewHostImpl* render_view_host, |
| 3667 int64 frame_id) { | 3667 int64 frame_id) { |
| 3668 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3668 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3669 FrameDetached(render_view_host, frame_id)); | 3669 FrameDetached(render_view_host, frame_id)); |
| 3670 } | 3670 } |
| 3671 | 3671 |
| 3672 void WebContentsImpl::PauseGeolocation() { |
| 3673 RenderViewHostImpl* rvh = |
| 3674 static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
| 3675 if (rvh) { |
| 3676 rvh->PauseGeolocation(); |
| 3677 } |
| 3678 } |
| 3679 |
| 3680 void WebContentsImpl::ResumeGeolocation() { |
| 3681 RenderViewHostImpl* rvh = |
| 3682 static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
| 3683 if (rvh) { |
| 3684 rvh->ResumeGeolocation(); |
| 3685 } |
| 3686 } |
| 3687 |
| 3672 } // namespace content | 3688 } // namespace content |
| OLD | NEW |