OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void setDefersLoading(bool); | 66 void setDefersLoading(bool); |
67 | 67 |
68 private: | 68 private: |
69 enum BlockingBehavior { | 69 enum BlockingBehavior { |
70 LoadSynchronously, | 70 LoadSynchronously, |
71 LoadAsynchronously | 71 LoadAsynchronously |
72 }; | 72 }; |
73 | 73 |
74 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh
avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa
derOptions&); | 74 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh
avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa
derOptions&); |
75 | 75 |
| 76 void clear(); |
| 77 |
76 // ResourceClient | 78 // ResourceClient |
77 void notifyFinished(Resource*) override; | 79 void notifyFinished(Resource*) override; |
78 // RawResourceClient | 80 // RawResourceClient |
79 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; | 81 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; |
80 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web
DataConsumerHandle>) override; | 82 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web
DataConsumerHandle>) override; |
81 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; | 83 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; |
82 void dataReceived(Resource*, const char* data, unsigned dataLength) over
ride; | 84 void dataReceived(Resource*, const char* data, unsigned dataLength) over
ride; |
83 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; | 85 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; |
84 void dataDownloaded(Resource*, int) override; | 86 void dataDownloaded(Resource*, int) override; |
85 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; | 87 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // cross-origin redirects. | 170 // cross-origin redirects. |
169 // This is used to limit the number of redirects. | 171 // This is used to limit the number of redirects. |
170 // But this value is not the max number of total redirects allowed, | 172 // But this value is not the max number of total redirects allowed, |
171 // because same-origin redirects are not counted here. | 173 // because same-origin redirects are not counted here. |
172 int m_corsRedirectLimit; | 174 int m_corsRedirectLimit; |
173 }; | 175 }; |
174 | 176 |
175 } // namespace blink | 177 } // namespace blink |
176 | 178 |
177 #endif // DocumentThreadableLoader_h | 179 #endif // DocumentThreadableLoader_h |
OLD | NEW |