| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 5 #ifndef NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
| 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 6 #define NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 AuthCredentials* credentials) override; | 79 AuthCredentials* credentials) override; |
| 80 | 80 |
| 81 bool OnCanGetCookies(const URLRequest& request, | 81 bool OnCanGetCookies(const URLRequest& request, |
| 82 const CookieList& cookie_list) override; | 82 const CookieList& cookie_list) override; |
| 83 | 83 |
| 84 bool OnCanSetCookie(const URLRequest& request, | 84 bool OnCanSetCookie(const URLRequest& request, |
| 85 const std::string& cookie_line, | 85 const std::string& cookie_line, |
| 86 CookieOptions* options) override; | 86 CookieOptions* options) override; |
| 87 | 87 |
| 88 bool OnCanAccessFile(const URLRequest& request, | 88 bool OnCanAccessFile(const URLRequest& request, |
| 89 const base::FilePath& path) const override; | 89 const base::FilePath& original_path, |
| 90 const base::FilePath& absolute_path) const override; |
| 90 | 91 |
| 91 bool OnCanEnablePrivacyMode( | 92 bool OnCanEnablePrivacyMode( |
| 92 const GURL& url, | 93 const GURL& url, |
| 93 const GURL& first_party_for_cookies) const override; | 94 const GURL& first_party_for_cookies) const override; |
| 94 | 95 |
| 95 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 96 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
| 96 | 97 |
| 97 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 98 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 98 const URLRequest& request, | 99 const URLRequest& request, |
| 99 const GURL& target_url, | 100 const GURL& target_url, |
| 100 const GURL& referrer_url) const override; | 101 const GURL& referrer_url) const override; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace net | 104 } // namespace net |
| 104 | 105 |
| 105 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 106 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
| OLD | NEW |