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" | |
9 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
10 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 // PlzNavigate | 13 // PlzNavigate |
15 bool ShouldMakeNetworkRequestForURL(const GURL& url) { | 14 bool ShouldMakeNetworkRequestForURL(const GURL& url) { |
16 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( | 15 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( |
17 switches::kEnableBrowserSideNavigation)); | 16 switches::kEnableBrowserSideNavigation)); |
18 | 17 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 const RequestNavigationParams& request_params) | 174 const RequestNavigationParams& request_params) |
176 : common_params(common_params), | 175 : common_params(common_params), |
177 start_params(start_params), | 176 start_params(start_params), |
178 request_params(request_params) { | 177 request_params(request_params) { |
179 } | 178 } |
180 | 179 |
181 NavigationParams::~NavigationParams() { | 180 NavigationParams::~NavigationParams() { |
182 } | 181 } |
183 | 182 |
184 } // namespace content | 183 } // namespace content |
OLD | NEW |