OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 // clean this frame up after https://crbug.com/548275 is fixed. | 1624 // clean this frame up after https://crbug.com/548275 is fixed. |
1625 if (proxy_routing_id_ != MSG_ROUTING_NONE) { | 1625 if (proxy_routing_id_ != MSG_ROUTING_NONE) { |
1626 RenderFrameProxy* proxy = | 1626 RenderFrameProxy* proxy = |
1627 RenderFrameProxy::FromRoutingID(proxy_routing_id_); | 1627 RenderFrameProxy::FromRoutingID(proxy_routing_id_); |
1628 if (!proxy) | 1628 if (!proxy) |
1629 return; | 1629 return; |
1630 } | 1630 } |
1631 | 1631 |
1632 RenderThreadImpl* render_thread_impl = RenderThreadImpl::current(); | 1632 RenderThreadImpl* render_thread_impl = RenderThreadImpl::current(); |
1633 // Can be NULL in tests. | 1633 // Can be NULL in tests. |
1634 if (render_thread_impl) | 1634 if (render_thread_impl && IsMainFrame()) |
1635 render_thread_impl->GetRendererScheduler()->OnNavigationStarted(); | 1635 render_thread_impl->GetRendererScheduler()->OnNavigationStarted(); |
1636 DCHECK(!IsBrowserSideNavigationEnabled()); | 1636 DCHECK(!IsBrowserSideNavigationEnabled()); |
1637 TRACE_EVENT2("navigation,rail", "RenderFrameImpl::OnNavigate", "id", | 1637 TRACE_EVENT2("navigation,rail", "RenderFrameImpl::OnNavigate", "id", |
1638 routing_id_, "url", common_params.url.possibly_invalid_spec()); | 1638 routing_id_, "url", common_params.url.possibly_invalid_spec()); |
1639 NavigateInternal(common_params, start_params, request_params, | 1639 NavigateInternal(common_params, start_params, request_params, |
1640 std::unique_ptr<StreamOverrideParameters>()); | 1640 std::unique_ptr<StreamOverrideParameters>()); |
1641 } | 1641 } |
1642 | 1642 |
1643 void RenderFrameImpl::Bind(mojom::FrameRequest request, | 1643 void RenderFrameImpl::Bind(mojom::FrameRequest request, |
1644 mojom::FrameHostPtr host) { | 1644 mojom::FrameHostPtr host) { |
(...skipping 4845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6490 // event target. Potentially a Pepper plugin will receive the event. | 6490 // event target. Potentially a Pepper plugin will receive the event. |
6491 // In order to tell whether a plugin gets the last mouse event and which it | 6491 // In order to tell whether a plugin gets the last mouse event and which it |
6492 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6492 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6493 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6493 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6494 // |pepper_last_mouse_event_target_|. | 6494 // |pepper_last_mouse_event_target_|. |
6495 pepper_last_mouse_event_target_ = nullptr; | 6495 pepper_last_mouse_event_target_ = nullptr; |
6496 #endif | 6496 #endif |
6497 } | 6497 } |
6498 | 6498 |
6499 } // namespace content | 6499 } // namespace content |
OLD | NEW |