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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 String debugName() const override { return "DocumentThreadableLoader"; } | 89 String debugName() const override { return "DocumentThreadableLoader"; } |
90 | 90 |
91 // RawResourceClient | 91 // RawResourceClient |
92 // | 92 // |
93 // |this| may be dead after calling these methods. | 93 // |this| may be dead after calling these methods. |
94 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; | 94 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon
g totalBytesToBeSent) override; |
95 void responseReceived(Resource*, const ResourceResponse&, std::unique_pt
r<WebDataConsumerHandle>) override; | 95 void responseReceived(Resource*, const ResourceResponse&, std::unique_pt
r<WebDataConsumerHandle>) override; |
96 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; | 96 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid
e; |
97 void dataReceived(Resource*, const char* data, size_t dataLength) overri
de; | 97 void dataReceived(Resource*, const char* data, size_t dataLength) overri
de; |
98 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; | 98 bool redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) override; |
99 void redirectBlocked() override; | 99 void redirectBlocked() override; |
100 void dataDownloaded(Resource*, int) override; | 100 void dataDownloaded(Resource*, int) override; |
101 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; | 101 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over
ride; |
102 | 102 |
103 // |this| may be dead after calling this method in async mode. | 103 // |this| may be dead after calling this method in async mode. |
104 void cancelWithError(const ResourceError&); | 104 void cancelWithError(const ResourceError&); |
105 | 105 |
106 // Notify Inspector and log to console about resource response. Use | 106 // Notify Inspector and log to console about resource response. Use |
107 // this method if response is not going to be finished normally. | 107 // this method if response is not going to be finished normally. |
108 void reportResponseReceived(unsigned long identifier, const ResourceResp
onse&); | 108 void reportResponseReceived(unsigned long identifier, const ResourceResp
onse&); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 bool m_didRedirect; | 237 bool m_didRedirect; |
238 Referrer m_referrerAfterRedirect; | 238 Referrer m_referrerAfterRedirect; |
239 | 239 |
240 RawResourceClientStateChecker m_checker; | 240 RawResourceClientStateChecker m_checker; |
241 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; | 241 WeakPtrFactory<DocumentThreadableLoader> m_weakFactory; |
242 }; | 242 }; |
243 | 243 |
244 } // namespace blink | 244 } // namespace blink |
245 | 245 |
246 #endif // DocumentThreadableLoader_h | 246 #endif // DocumentThreadableLoader_h |
OLD | NEW |