OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/navigation_params.h" | 5 #include "content/common/navigation_params.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // network stack. Neither should pushState/popState. | 21 // network stack. Neither should pushState/popState. |
22 return !url.SchemeIs(url::kDataScheme) && url != GURL(url::kAboutBlankURL) && | 22 return !url.SchemeIs(url::kDataScheme) && url != GURL(url::kAboutBlankURL) && |
23 !url.SchemeIs(url::kJavaScriptScheme); | 23 !url.SchemeIs(url::kJavaScriptScheme); |
24 } | 24 } |
25 | 25 |
26 CommonNavigationParams::CommonNavigationParams() | 26 CommonNavigationParams::CommonNavigationParams() |
27 : transition(ui::PAGE_TRANSITION_LINK), | 27 : transition(ui::PAGE_TRANSITION_LINK), |
28 navigation_type(FrameMsg_Navigate_Type::NORMAL), | 28 navigation_type(FrameMsg_Navigate_Type::NORMAL), |
29 allow_download(true), | 29 allow_download(true), |
30 should_replace_current_entry(false), | 30 should_replace_current_entry(false), |
31 report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT) { | 31 report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT), |
| 32 lofi_state(LOFI_DEFAULT) { |
32 } | 33 } |
33 | 34 |
34 CommonNavigationParams::CommonNavigationParams( | 35 CommonNavigationParams::CommonNavigationParams( |
35 const GURL& url, | 36 const GURL& url, |
36 const Referrer& referrer, | 37 const Referrer& referrer, |
37 ui::PageTransition transition, | 38 ui::PageTransition transition, |
38 FrameMsg_Navigate_Type::Value navigation_type, | 39 FrameMsg_Navigate_Type::Value navigation_type, |
39 bool allow_download, | 40 bool allow_download, |
40 bool should_replace_current_entry, | 41 bool should_replace_current_entry, |
41 base::TimeTicks ui_timestamp, | 42 base::TimeTicks ui_timestamp, |
42 FrameMsg_UILoadMetricsReportType::Value report_type, | 43 FrameMsg_UILoadMetricsReportType::Value report_type, |
43 const GURL& base_url_for_data_url, | 44 const GURL& base_url_for_data_url, |
44 const GURL& history_url_for_data_url) | 45 const GURL& history_url_for_data_url) |
45 : url(url), | 46 : url(url), |
46 referrer(referrer), | 47 referrer(referrer), |
47 transition(transition), | 48 transition(transition), |
48 navigation_type(navigation_type), | 49 navigation_type(navigation_type), |
49 allow_download(allow_download), | 50 allow_download(allow_download), |
50 should_replace_current_entry(should_replace_current_entry), | 51 should_replace_current_entry(should_replace_current_entry), |
51 ui_timestamp(ui_timestamp), | 52 ui_timestamp(ui_timestamp), |
52 report_type(report_type), | 53 report_type(report_type), |
53 base_url_for_data_url(base_url_for_data_url), | 54 base_url_for_data_url(base_url_for_data_url), |
54 history_url_for_data_url(history_url_for_data_url) { | 55 history_url_for_data_url(history_url_for_data_url), |
| 56 lofi_state(LOFI_DEFAULT) { |
55 } | 57 } |
56 | 58 |
57 CommonNavigationParams::~CommonNavigationParams() { | 59 CommonNavigationParams::~CommonNavigationParams() { |
58 } | 60 } |
59 | 61 |
60 BeginNavigationParams::BeginNavigationParams() | 62 BeginNavigationParams::BeginNavigationParams() |
61 : load_flags(0), has_user_gesture(false) { | 63 : load_flags(0), has_user_gesture(false) { |
62 } | 64 } |
63 | 65 |
64 BeginNavigationParams::BeginNavigationParams(std::string method, | 66 BeginNavigationParams::BeginNavigationParams(std::string method, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 const RequestNavigationParams& request_params) | 162 const RequestNavigationParams& request_params) |
161 : common_params(common_params), | 163 : common_params(common_params), |
162 start_params(start_params), | 164 start_params(start_params), |
163 request_params(request_params) { | 165 request_params(request_params) { |
164 } | 166 } |
165 | 167 |
166 NavigationParams::~NavigationParams() { | 168 NavigationParams::~NavigationParams() { |
167 } | 169 } |
168 | 170 |
169 } // namespace content | 171 } // namespace content |
OLD | NEW |