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 "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/static_cookie_policy.h" | 10 #include "net/base/static_cookie_policy.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 int rv = policy.CanSetCookie( | 100 int rv = policy.CanSetCookie( |
101 request.url(), request.first_party_for_cookies()); | 101 request.url(), request.first_party_for_cookies()); |
102 return rv == net::OK; | 102 return rv == net::OK; |
103 } | 103 } |
104 | 104 |
105 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, | 105 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, |
106 const base::FilePath& path) const { | 106 const base::FilePath& path) const { |
107 return true; | 107 return true; |
108 } | 108 } |
109 | 109 |
110 bool ShellNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { | 110 bool ShellNetworkDelegate::OnExperimentalFeaturesEnabled() const { |
111 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 111 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
112 switches::kEnableExperimentalWebPlatformFeatures); | 112 switches::kEnableExperimentalWebPlatformFeatures); |
113 } | 113 } |
114 | 114 |
115 } // namespace content | 115 } // namespace content |
OLD | NEW |