| 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 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) | 1947 if (!common_params.url.SchemeIs(url::kJavaScriptScheme)) |
| 1948 OnDidStartLoading(true); | 1948 OnDidStartLoading(true); |
| 1949 } | 1949 } |
| 1950 | 1950 |
| 1951 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { | 1951 void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { |
| 1952 DCHECK(data_url.SchemeIs(url::kDataScheme)); | 1952 DCHECK(data_url.SchemeIs(url::kDataScheme)); |
| 1953 CommonNavigationParams common_params( | 1953 CommonNavigationParams common_params( |
| 1954 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, | 1954 data_url, Referrer(), ui::PAGE_TRANSITION_LINK, |
| 1955 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), | 1955 FrameMsg_Navigate_Type::NORMAL, false, false, base::TimeTicks::Now(), |
| 1956 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, | 1956 FrameMsg_UILoadMetricsReportType::NO_REPORT, GURL(), GURL(), LOFI_OFF, |
| 1957 base::TimeTicks::Now()); | 1957 base::TimeTicks::Now(), "GET"); |
| 1958 if (IsBrowserSideNavigationEnabled()) { | 1958 if (IsBrowserSideNavigationEnabled()) { |
| 1959 CommitNavigation(nullptr, nullptr, common_params, | 1959 CommitNavigation(nullptr, nullptr, common_params, |
| 1960 RequestNavigationParams()); | 1960 RequestNavigationParams()); |
| 1961 } else { | 1961 } else { |
| 1962 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); | 1962 Navigate(common_params, StartNavigationParams(), RequestNavigationParams()); |
| 1963 } | 1963 } |
| 1964 } | 1964 } |
| 1965 | 1965 |
| 1966 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, | 1966 void RenderFrameHostImpl::OpenURL(const FrameHostMsg_OpenURL_Params& params, |
| 1967 SiteInstance* source_site_instance) { | 1967 SiteInstance* source_site_instance) { |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2609 *dst = src; | 2609 *dst = src; |
| 2610 | 2610 |
| 2611 if (src.routing_id != -1) | 2611 if (src.routing_id != -1) |
| 2612 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); | 2612 dst->tree_id = RoutingIDToAXTreeID(src.routing_id); |
| 2613 | 2613 |
| 2614 if (src.parent_routing_id != -1) | 2614 if (src.parent_routing_id != -1) |
| 2615 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); | 2615 dst->parent_tree_id = RoutingIDToAXTreeID(src.parent_routing_id); |
| 2616 } | 2616 } |
| 2617 | 2617 |
| 2618 } // namespace content | 2618 } // namespace content |
| OLD | NEW |