OLD | NEW |
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 Loading... |
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 |
OLD | NEW |