| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh
avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa
derOptions&); | 75 DocumentThreadableLoader(Document&, ThreadableLoaderClient*, BlockingBeh
avior, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoa
derOptions&); |
| 76 | 76 |
| 77 void clear(); | 77 void clear(); |
| 78 | 78 |
| 79 // ResourceClient | 79 // ResourceClient |
| 80 // | 80 // |
| 81 // |this| may be dead after calling this method. | 81 // |this| may be dead after calling this method. |
| 82 void notifyFinished(Resource*) override; | 82 void notifyFinished(Resource*) override; |
| 83 | 83 |
| 84 String debugName() const override { return "DocumentThreadableLoader"; } |
| 85 |
| 84 // RawResourceClient | 86 // RawResourceClient |
| 85 // | 87 // |
| 86 // |this| may be dead after calling these methods. | 88 // |this| may be dead after calling these methods. |
| 87 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; | 89 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; |
| 88 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web
DataConsumerHandle>) override; | 90 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web
DataConsumerHandle>) override; |
| 89 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; | 91 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; |
| 90 void dataReceived(Resource*, const char* data, unsigned dataLength) over
ride; | 92 void dataReceived(Resource*, const char* data, unsigned dataLength) over
ride; |
| 91 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; | 93 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; |
| 92 void dataDownloaded(Resource*, int) override; | 94 void dataDownloaded(Resource*, int) override; |
| 93 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; | 95 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // But this value is not the max number of total redirects allowed, | 195 // But this value is not the max number of total redirects allowed, |
| 194 // because same-origin redirects are not counted here. | 196 // because same-origin redirects are not counted here. |
| 195 int m_corsRedirectLimit; | 197 int m_corsRedirectLimit; |
| 196 | 198 |
| 197 const WebURLRequest::FetchRedirectMode m_redirectMode; | 199 const WebURLRequest::FetchRedirectMode m_redirectMode; |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace blink | 202 } // namespace blink |
| 201 | 203 |
| 202 #endif // DocumentThreadableLoader_h | 204 #endif // DocumentThreadableLoader_h |
| OLD | NEW |