| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 d->setClient(client); | 211 d->setClient(client); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ResourceHandle::setDefersLoading(bool value) | 214 void ResourceHandle::setDefersLoading(bool value) |
| 215 { | 215 { |
| 216 d->setDefersLoading(value); | 216 d->setDefersLoading(value); |
| 217 } | 217 } |
| 218 | 218 |
| 219 bool ResourceHandle::start(NetworkingContext* context) | 219 bool ResourceHandle::start(NetworkingContext* context) |
| 220 { | 220 { |
| 221 if (!context) |
| 222 return false; |
| 223 |
| 221 d->start(); | 224 d->start(); |
| 222 return true; | 225 return true; |
| 223 } | 226 } |
| 224 | 227 |
| 225 bool ResourceHandle::hasAuthenticationChallenge() const | 228 bool ResourceHandle::hasAuthenticationChallenge() const |
| 226 { | 229 { |
| 227 return false; | 230 return false; |
| 228 } | 231 } |
| 229 | 232 |
| 230 void ResourceHandle::clearAuthentication() | 233 void ResourceHandle::clearAuthentication() |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 return true; | 289 return true; |
| 287 } | 290 } |
| 288 | 291 |
| 289 // static | 292 // static |
| 290 void ResourceHandle::cacheMetadata(const ResourceResponse& response, const Vecto
r<char>& data) | 293 void ResourceHandle::cacheMetadata(const ResourceResponse& response, const Vecto
r<char>& data) |
| 291 { | 294 { |
| 292 WebKit::Platform::current()->cacheMetadata(response.url(), response.response
Time(), data.data(), data.size()); | 295 WebKit::Platform::current()->cacheMetadata(response.url(), response.response
Time(), data.data(), data.size()); |
| 293 } | 296 } |
| 294 | 297 |
| 295 } // namespace WebCore | 298 } // namespace WebCore |
| OLD | NEW |