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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
rights reserved. |
5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 5 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 void printPreloadStats(); | 100 void printPreloadStats(); |
101 | 101 |
102 MHTMLArchive* archive() const { return m_archive.get(); } | 102 MHTMLArchive* archive() const { return m_archive.get(); } |
103 ArchiveResource* createArchive(Resource*); | 103 ArchiveResource* createArchive(Resource*); |
104 | 104 |
105 void setDefersLoading(bool); | 105 void setDefersLoading(bool); |
106 void stopFetching(); | 106 void stopFetching(); |
107 bool isFetching() const; | 107 bool isFetching() const; |
108 | 108 |
109 void didLoadResource(Resource*); | 109 void didLoadResource(Resource*); |
110 void redirectReceived(Resource*, const ResourceResponse&); | 110 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&
); |
111 void didFinishLoading(Resource*, double finishTime, int64_t encodedDataLengt
h); | 111 void didFinishLoading(Resource*, double finishTime, int64_t encodedDataLengt
h); |
112 void didFailLoading(const Resource*, const ResourceError&); | 112 void didFailLoading(const Resource*, const ResourceError&); |
113 void willSendRequest(unsigned long identifier, ResourceRequest&, const Resou
rceResponse& redirectResponse, const FetchInitiatorInfo&); | |
114 void didReceiveResponse(const Resource*, const ResourceResponse&); | 113 void didReceiveResponse(const Resource*, const ResourceResponse&); |
115 void didReceiveData(const Resource*, const char* data, int dataLength, int e
ncodedDataLength); | 114 void didReceiveData(const Resource*, const char* data, int dataLength, int e
ncodedDataLength); |
116 void didDownloadData(const Resource*, int dataLength, int encodedDataLength)
; | 115 void didDownloadData(const Resource*, int dataLength, int encodedDataLength)
; |
117 void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*); | 116 void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*); |
118 void didInitializeResourceLoader(ResourceLoader*); | 117 void willStartLoadingResource(Resource*, ResourceLoader*, ResourceRequest&); |
119 void willStartLoadingResource(Resource*, ResourceRequest&); | |
120 bool defersLoading() const; | 118 bool defersLoading() const; |
121 | 119 |
122 enum AccessControlLoggingDecision { | 120 enum AccessControlLoggingDecision { |
123 ShouldLogAccessControlErrors, | 121 ShouldLogAccessControlErrors, |
124 ShouldNotLogAccessControlErrors | 122 ShouldNotLogAccessControlErrors |
125 }; | 123 }; |
126 bool canAccessRedirect(Resource*, ResourceRequest&, const ResourceResponse&,
ResourceLoaderOptions&); | |
127 bool canAccessResource(Resource*, SecurityOrigin*, const KURL&, AccessContro
lLoggingDecision) const; | 124 bool canAccessResource(Resource*, SecurityOrigin*, const KURL&, AccessContro
lLoggingDecision) const; |
128 bool isControlledByServiceWorker() const; | 125 bool isControlledByServiceWorker() const; |
129 | 126 |
130 void acceptDataFromThreadedReceiver(unsigned long identifier, const char* da
ta, int dataLength, int encodedDataLength); | 127 void acceptDataFromThreadedReceiver(unsigned long identifier, const char* da
ta, int dataLength, int encodedDataLength); |
131 | 128 |
132 ResourceLoadPriority loadPriority(Resource::Type, const FetchRequest&, Resou
rcePriority::VisibilityStatus = ResourcePriority::NotVisible); | 129 ResourceLoadPriority loadPriority(Resource::Type, const FetchRequest&, Resou
rcePriority::VisibilityStatus = ResourcePriority::NotVisible); |
133 | 130 |
134 enum ResourceLoadStartType { | 131 enum ResourceLoadStartType { |
135 ResourceLoadingFromNetwork, | 132 ResourceLoadingFromNetwork, |
136 ResourceLoadingFromCache | 133 ResourceLoadingFromCache |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 m_loader->m_allowStaleResources = m_previousState; | 239 m_loader->m_allowStaleResources = m_previousState; |
243 } | 240 } |
244 private: | 241 private: |
245 Member<ResourceFetcher> m_loader; | 242 Member<ResourceFetcher> m_loader; |
246 bool m_previousState; | 243 bool m_previousState; |
247 }; | 244 }; |
248 | 245 |
249 } // namespace blink | 246 } // namespace blink |
250 | 247 |
251 #endif // ResourceFetcher_h | 248 #endif // ResourceFetcher_h |
OLD | NEW |