| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 private: | 325 private: |
| 326 ResourceCallback(); | 326 ResourceCallback(); |
| 327 void runTask(); | 327 void runTask(); |
| 328 OwnPtr<CancellableTaskFactory> m_callbackTaskFactory; | 328 OwnPtr<CancellableTaskFactory> m_callbackTaskFactory; |
| 329 WillBeHeapHashSet<RawPtrWillBeMember<Resource>> m_resourcesWithPendingCl
ients; | 329 WillBeHeapHashSet<RawPtrWillBeMember<Resource>> m_resourcesWithPendingCl
ients; |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 bool hasClient(ResourceClient* client) { return m_clients.contains(client) |
| m_clientsAwaitingCallback.contains(client) || m_finishedClients.contains(clien
t); } | 332 bool hasClient(ResourceClient* client) { return m_clients.contains(client) |
| m_clientsAwaitingCallback.contains(client) || m_finishedClients.contains(clien
t); } |
| 333 | 333 |
| 334 struct RedirectPair { | 334 struct RedirectPair { |
| 335 ALLOW_ONLY_INLINE_ALLOCATION(); | 335 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 336 public: | 336 public: |
| 337 explicit RedirectPair(const ResourceRequest& request, const ResourceResp
onse& redirectResponse) | 337 explicit RedirectPair(const ResourceRequest& request, const ResourceResp
onse& redirectResponse) |
| 338 : m_request(request) | 338 : m_request(request) |
| 339 , m_redirectResponse(redirectResponse) | 339 , m_redirectResponse(redirectResponse) |
| 340 { | 340 { |
| 341 } | 341 } |
| 342 | 342 |
| 343 ResourceRequest m_request; | 343 ResourceRequest m_request; |
| 344 ResourceResponse m_redirectResponse; | 344 ResourceResponse m_redirectResponse; |
| 345 }; | 345 }; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 const char* ResourceTypeName(Resource::Type); | 439 const char* ResourceTypeName(Resource::Type); |
| 440 #endif | 440 #endif |
| 441 | 441 |
| 442 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 442 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 443 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ | 443 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->type() =
= Resource::typeName, resource.type() == Resource::typeName); \ |
| 444 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } | 444 inline typeName##Resource* to##typeName##Resource(const ResourcePtr<Resource
>& ptr) { return to##typeName##Resource(ptr.get()); } |
| 445 | 445 |
| 446 } | 446 } |
| 447 | 447 |
| 448 #endif | 448 #endif |
| OLD | NEW |