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

Side by Side Diff: content/shell/browser/shell_network_delegate.cc

Issue 2633663003: Implements strict secure cookies as the default behavior in //net (Closed)
Patch Set: Rebase on ToT Created 3 years, 10 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_network_delegate.h" 5 #include "content/shell/browser/shell_network_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, 106 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
107 const base::FilePath& path) const { 107 const base::FilePath& path) const {
108 return true; 108 return true;
109 } 109 }
110 110
111 bool ShellNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const { 111 bool ShellNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const {
112 return base::CommandLine::ForCurrentProcess()->HasSwitch( 112 return base::CommandLine::ForCurrentProcess()->HasSwitch(
113 switches::kEnableExperimentalWebPlatformFeatures); 113 switches::kEnableExperimentalWebPlatformFeatures);
114 } 114 }
115 115
116 bool ShellNetworkDelegate::OnAreStrictSecureCookiesEnabled() const {
117 return OnAreExperimentalCookieFeaturesEnabled();
118 }
119
120 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_network_delegate.h ('k') | headless/public/util/generic_url_request_job_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698