| 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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) | 1915 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) |
| 1916 frame_tree_node_->DidStartLoading(true); | 1916 frame_tree_node_->DidStartLoading(true); |
| 1917 } | 1917 } |
| 1918 | 1918 |
| 1919 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { | 1919 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { |
| 1920 DCHECK(data_url.SchemeIs(url::kDataScheme)); | 1920 DCHECK(data_url.SchemeIs(url::kDataScheme)); |
| 1921 CommonNavigationParams common_params( | 1921 CommonNavigationParams common_params( |
| 1922 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, | 1922 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, |
| 1923 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), | 1923 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), |
| 1924 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, | 1924 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, |
| 1925 base::TimeTicks::Now()); | 1925 base::TimeTicks::Now(), false); |
| 1926 if (IsBrowserSideNavigationEnabled()) { | 1926 if (IsBrowserSideNavigationEnabled()) { |
| 1927 CommitNavigation(nullptr, nullptr, common_params, | 1927 CommitNavigation(nullptr, nullptr, common_params, |
| 1928 RequestNavigationParams()); | 1928 RequestNavigationParams()); |
| 1929 } else { | 1929 } else { |
| 1930 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); | 1930 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); |
| 1931 } | 1931 } |
| 1932 } | 1932 } |
| 1933 | 1933 |
| 1934 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 1934 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 1935 SiteInstance* source_site_instance) { | 1935 SiteInstance* source_site_instance) { |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 *dst = src; | 2565 *dst = src; |
| 2566 | 2566 |
| 2567 if (src.routing_id != -1) | 2567 if (src.routing_id != -1) |
| 2568 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2568 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2569 | 2569 |
| 2570 if (src.parent_routing_id != -1) | 2570 if (src.parent_routing_id != -1) |
| 2571 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2571 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2572 } | 2572 } |
| 2573 | 2573 |
| 2574 } // namespace content | 2574 } // namespace content |
| OLD | NEW |