OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "headless/lib/browser/headless_network_delegate.h" | 5 #include "headless/lib/browser/headless_network_delegate.h" |
6 | 6 |
7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
8 #include "net/http/http_request_headers.h" | 8 #include "net/http/http_request_headers.h" |
9 | 9 |
10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 | 80 |
81 bool HeadlessNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, | 81 bool HeadlessNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, |
82 const std::string& cookie_line, | 82 const std::string& cookie_line, |
83 net::CookieOptions* options) { | 83 net::CookieOptions* options) { |
84 return true; | 84 return true; |
85 } | 85 } |
86 | 86 |
87 bool HeadlessNetworkDelegate::OnCanAccessFile( | 87 bool HeadlessNetworkDelegate::OnCanAccessFile( |
88 const net::URLRequest& request, | 88 const net::URLRequest& request, |
89 const base::FilePath& path) const { | 89 const base::FilePath& original_path, |
| 90 const base::FilePath& absolute_path) const { |
90 return true; | 91 return true; |
91 } | 92 } |
92 | 93 |
93 } // namespace headless | 94 } // namespace headless |
OLD | NEW |