Chromium Code Reviews| 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 "content/common/content_constants_internal.h" |
|
Charlie Reis
2015/12/14 20:35:57
Not needed anymore?
mnaganov (inactive)
2015/12/15 18:30:29
Looks so, removed.
| |
| 9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 // PlzNavigate | 14 // PlzNavigate |
| 15 bool ShouldMakeNetworkRequestForURL(const GURL& url) { | 15 bool ShouldMakeNetworkRequestForURL(const GURL& url) { |
| 16 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( | 16 CHECK(base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 17 switches::kEnableBrowserSideNavigation)); | 17 switches::kEnableBrowserSideNavigation)); |
| 18 | 18 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 175 const RequestNavigationParams& request_params) | 175 const RequestNavigationParams& request_params) |
| 176 : common_params(common_params), | 176 : common_params(common_params), |
| 177 start_params(start_params), | 177 start_params(start_params), |
| 178 request_params(request_params) { | 178 request_params(request_params) { |
| 179 } | 179 } |
| 180 | 180 |
| 181 NavigationParams::~NavigationParams() { | 181 NavigationParams::~NavigationParams() { |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace content | 184 } // namespace content |
| OLD | NEW |