Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Side by Side Diff: Source/WebCore/loader/ResourceLoadScheduler.h

Issue 7019016: Merge 86290 - 2011-05-11 Antoine Labour <piman@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/loader/DocumentThreadableLoader.cpp ('k') | Source/WebCore/loader/ResourceLoadScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698