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

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: Make specific to Android, use RefCountedString 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" 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698