Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/base/network_delegate.h" | 5 #include "net/base/network_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/base/load_flags.h" | 8 #include "net/base/load_flags.h" |
| 9 #include "net/url_request/url_request.h" | 9 #include "net/url_request/url_request.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 DCHECK(CalledOnValidThread()); | 98 DCHECK(CalledOnValidThread()); |
| 99 DCHECK(!(request->load_flags() & net::LOAD_DO_NOT_SEND_COOKIES)); | 99 DCHECK(!(request->load_flags() & net::LOAD_DO_NOT_SEND_COOKIES)); |
| 100 return CanGetCookies(request, cookie_list); | 100 return CanGetCookies(request, cookie_list); |
| 101 } | 101 } |
| 102 | 102 |
| 103 bool NetworkDelegate::NotifySettingCookie( | 103 bool NetworkDelegate::NotifySettingCookie( |
| 104 const URLRequest* request, | 104 const URLRequest* request, |
| 105 const std::string& cookie_line, | 105 const std::string& cookie_line, |
| 106 CookieOptions* options) { | 106 CookieOptions* options) { |
| 107 DCHECK(CalledOnValidThread()); | 107 DCHECK(CalledOnValidThread()); |
| 108 DCHECK(request); | |
| 108 DCHECK(!(request->load_flags() & net::LOAD_DO_NOT_SAVE_COOKIES)); | 109 DCHECK(!(request->load_flags() & net::LOAD_DO_NOT_SAVE_COOKIES)); |
| 109 return CanSetCookie(request, cookie_line, options); | 110 return CanSetCookie(request, cookie_line, options); |
| 110 } | 111 } |
| 111 | 112 |
| 113 bool NetworkDelegate::NotifyFileAccessRequested(const URLRequest* request, | |
| 114 const FilePath& path){ | |
|
willchan no longer on Chromium
2012/04/19 21:12:24
Missing a whitespace before the '{'
Greg Spencer (Chromium)
2012/04/20 00:05:54
Done.
| |
| 115 DCHECK(CalledOnValidThread()); | |
| 116 DCHECK(request); | |
| 117 return CanAccessFile(request, path); | |
| 118 } | |
| 119 | |
| 112 } // namespace net | 120 } // namespace net |
| OLD | NEW |