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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 #include "net/base/network_delegate_impl.h" | 10 #include "net/base/network_delegate_impl.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 net::AuthCredentials* credentials) override; | 57 net::AuthCredentials* credentials) override; |
58 | 58 |
59 bool OnCanGetCookies(const net::URLRequest& request, | 59 bool OnCanGetCookies(const net::URLRequest& request, |
60 const net::CookieList& cookie_list) override; | 60 const net::CookieList& cookie_list) override; |
61 | 61 |
62 bool OnCanSetCookie(const net::URLRequest& request, | 62 bool OnCanSetCookie(const net::URLRequest& request, |
63 const std::string& cookie_line, | 63 const std::string& cookie_line, |
64 net::CookieOptions* options) override; | 64 net::CookieOptions* options) override; |
65 | 65 |
66 bool OnCanAccessFile(const net::URLRequest& request, | 66 bool OnCanAccessFile(const net::URLRequest& request, |
67 const base::FilePath& path) const override; | 67 const base::FilePath& original_path, |
| 68 const base::FilePath& absolute_path) const override; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(HeadlessNetworkDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(HeadlessNetworkDelegate); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace headless | 73 } // namespace headless |
73 | 74 |
74 #endif // HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ | 75 #endif // HEADLESS_LIB_BROWSER_HEADLESS_NETWORK_DELEGATE_H_ |
OLD | NEW |