| 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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) | 1919 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) |
| 1920 frame_tree_node_->DidStartLoading(true); | 1920 frame_tree_node_->DidStartLoading(true); |
| 1921 } | 1921 } |
| 1922 | 1922 |
| 1923 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { | 1923 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { |
| 1924 DCHECK(data_url.SchemeIs(url::kDataScheme)); | 1924 DCHECK(data_url.SchemeIs(url::kDataScheme)); |
| 1925 CommonNavigationParams common_params( | 1925 CommonNavigationParams common_params( |
| 1926 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, | 1926 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, |
| 1927 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), | 1927 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), |
| 1928 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, | 1928 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, |
| 1929 base::TimeTicks::Now()); | 1929 base::TimeTicks::Now(), "GET"); |
| 1930 if (IsBrowserSideNavigationEnabled()) { | 1930 if (IsBrowserSideNavigationEnabled()) { |
| 1931 CommitNavigation(nullptr, nullptr, common_params, | 1931 CommitNavigation(nullptr, nullptr, common_params, |
| 1932 RequestNavigationParams()); | 1932 RequestNavigationParams()); |
| 1933 } else { | 1933 } else { |
| 1934 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); | 1934 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); |
| 1935 } | 1935 } |
| 1936 } | 1936 } |
| 1937 | 1937 |
| 1938 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 1938 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 1939 SiteInstance* source_site_instance) { | 1939 SiteInstance* source_site_instance) { |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 *dst = src; | 2569 *dst = src; |
| 2570 | 2570 |
| 2571 if (src.routing_id != -1) | 2571 if (src.routing_id != -1) |
| 2572 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2572 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2573 | 2573 |
| 2574 if (src.parent_routing_id != -1) | 2574 if (src.parent_routing_id != -1) |
| 2575 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2575 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 } // namespace content | 2578 } // namespace content |
| OLD | NEW |