Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: content/common/navigation_params.cc

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698