| 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) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 5 Copyright (C) 2010 Google Inc. All rights reserved. | 5 Copyright (C) 2010 Google 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class ResourceLoader; | 43 class ResourceLoader; |
| 44 class ResourceRequest; | 44 class ResourceRequest; |
| 45 class SubresourceLoader; | 45 class SubresourceLoader; |
| 46 class SubresourceLoaderClient; | 46 class SubresourceLoaderClient; |
| 47 | 47 |
| 48 class ResourceLoadScheduler { | 48 class ResourceLoadScheduler { |
| 49 WTF_MAKE_NONCOPYABLE(ResourceLoadScheduler); | 49 WTF_MAKE_NONCOPYABLE(ResourceLoadScheduler); |
| 50 public: | 50 public: |
| 51 friend ResourceLoadScheduler* resourceLoadScheduler(); | 51 friend ResourceLoadScheduler* resourceLoadScheduler(); |
| 52 | 52 |
| 53 PassRefPtr<SubresourceLoader> scheduleSubresourceLoad(Frame*, SubresourceLoa
derClient*, const ResourceRequest&, ResourceLoadPriority = ResourceLoadPriorityL
ow, SecurityCheckPolicy = DoSecurityCheck, bool sendResourceLoadCallbacks = true
, bool shouldContentSniff = true, const String& optionalOutgoingReferrer = Strin
g()); | 53 PassRefPtr<SubresourceLoader> scheduleSubresourceLoad(Frame*, SubresourceLoa
derClient*, const ResourceRequest&, ResourceLoadPriority = ResourceLoadPriorityL
ow, SecurityCheckPolicy = DoSecurityCheck, bool sendResourceLoadCallbacks = true
, bool shouldContentSniff = true, const String& optionalOutgoingReferrer = Strin
g(), bool shouldBufferData = true); |
| 54 PassRefPtr<NetscapePlugInStreamLoader> schedulePluginStreamLoad(Frame*, Nets
capePlugInStreamLoaderClient*, const ResourceRequest&); | 54 PassRefPtr<NetscapePlugInStreamLoader> schedulePluginStreamLoad(Frame*, Nets
capePlugInStreamLoaderClient*, const ResourceRequest&); |
| 55 void addMainResourceLoad(ResourceLoader*); | 55 void addMainResourceLoad(ResourceLoader*); |
| 56 void remove(ResourceLoader*); | 56 void remove(ResourceLoader*); |
| 57 void crossOriginRedirectReceived(ResourceLoader*, const KURL& redirectURL); | 57 void crossOriginRedirectReceived(ResourceLoader*, const KURL& redirectURL); |
| 58 | 58 |
| 59 void servePendingRequests(ResourceLoadPriority minimumPriority = ResourceLoa
dPriorityVeryLow); | 59 void servePendingRequests(ResourceLoadPriority minimumPriority = ResourceLoa
dPriorityVeryLow); |
| 60 void suspendPendingRequests(); | 60 void suspendPendingRequests(); |
| 61 void resumePendingRequests(); | 61 void resumePendingRequests(); |
| 62 | 62 |
| 63 bool isSerialLoadingEnabled() const { return m_isSerialLoadingEnabled; } | 63 bool isSerialLoadingEnabled() const { return m_isSerialLoadingEnabled; } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 bool m_isSuspendingPendingRequests; | 112 bool m_isSuspendingPendingRequests; |
| 113 bool m_isSerialLoadingEnabled; | 113 bool m_isSerialLoadingEnabled; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 ResourceLoadScheduler* resourceLoadScheduler(); | 116 ResourceLoadScheduler* resourceLoadScheduler(); |
| 117 | 117 |
| 118 } | 118 } |
| 119 | 119 |
| 120 #endif | 120 #endif |
| OLD | NEW |