| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 AuthCredentials* credentials) override; | 83 AuthCredentials* credentials) override; |
| 84 | 84 |
| 85 bool OnCanGetCookies(const URLRequest& request, | 85 bool OnCanGetCookies(const URLRequest& request, |
| 86 const CookieList& cookie_list) override; | 86 const CookieList& cookie_list) override; |
| 87 | 87 |
| 88 bool OnCanSetCookie(const URLRequest& request, | 88 bool OnCanSetCookie(const URLRequest& request, |
| 89 const std::string& cookie_line, | 89 const std::string& cookie_line, |
| 90 CookieOptions* options) override; | 90 CookieOptions* options) override; |
| 91 | 91 |
| 92 bool OnCanAccessFile(const URLRequest& request, | 92 bool OnCanAccessFile(const URLRequest& request, |
| 93 const base::FilePath& path) const override; | 93 const base::FilePath& original_path, |
| 94 const base::FilePath& absolute_path) const override; |
| 94 | 95 |
| 95 bool OnCanEnablePrivacyMode( | 96 bool OnCanEnablePrivacyMode( |
| 96 const GURL& url, | 97 const GURL& url, |
| 97 const GURL& first_party_for_cookies) const override; | 98 const GURL& first_party_for_cookies) const override; |
| 98 | 99 |
| 99 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 100 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
| 100 | 101 |
| 101 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 102 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 102 const URLRequest& request, | 103 const URLRequest& request, |
| 103 const GURL& target_url, | 104 const GURL& target_url, |
| 104 const GURL& referrer_url) const override; | 105 const GURL& referrer_url) const override; |
| 105 | 106 |
| 106 bool OnCanQueueReportingReport(const url::Origin& origin) const override; | 107 bool OnCanQueueReportingReport(const url::Origin& origin) const override; |
| 107 | 108 |
| 108 bool OnCanSendReportingReport(const url::Origin& origin) const override; | 109 bool OnCanSendReportingReport(const url::Origin& origin) const override; |
| 109 | 110 |
| 110 bool OnCanSetReportingClient(const url::Origin& origin, | 111 bool OnCanSetReportingClient(const url::Origin& origin, |
| 111 const GURL& endpoint) const override; | 112 const GURL& endpoint) const override; |
| 112 | 113 |
| 113 bool OnCanUseReportingClient(const url::Origin& origin, | 114 bool OnCanUseReportingClient(const url::Origin& origin, |
| 114 const GURL& endpoint) const override; | 115 const GURL& endpoint) const override; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace net | 118 } // namespace net |
| 118 | 119 |
| 119 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ | 120 #endif // NET_BASE_NETWORK_DELEGATE_IMPL_H_ |
| OLD | NEW |