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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // | 101 // |
102 // |this| may be dead after calling these methods. | 102 // |this| may be dead after calling these methods. |
103 void dataSent(Resource*, | 103 void dataSent(Resource*, |
104 unsigned long long bytesSent, | 104 unsigned long long bytesSent, |
105 unsigned long long totalBytesToBeSent) override; | 105 unsigned long long totalBytesToBeSent) override; |
106 void responseReceived(Resource*, | 106 void responseReceived(Resource*, |
107 const ResourceResponse&, | 107 const ResourceResponse&, |
108 std::unique_ptr<WebDataConsumerHandle>) override; | 108 std::unique_ptr<WebDataConsumerHandle>) override; |
109 void setSerializedCachedMetadata(Resource*, const char*, size_t) override; | 109 void setSerializedCachedMetadata(Resource*, const char*, size_t) override; |
110 void dataReceived(Resource*, const char* data, size_t dataLength) override; | 110 void dataReceived(Resource*, const char* data, size_t dataLength) override; |
111 void redirectReceived(Resource*, | 111 bool redirectReceived(Resource*, |
112 ResourceRequest&, | 112 const ResourceRequest&, |
113 const ResourceResponse&) override; | 113 const ResourceResponse&) override; |
114 void redirectBlocked() override; | 114 void redirectBlocked() override; |
115 void dataDownloaded(Resource*, int) override; | 115 void dataDownloaded(Resource*, int) override; |
116 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override; | 116 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) override; |
117 | 117 |
118 // |this| may be dead after calling this method in async mode. | 118 // |this| may be dead after calling this method in async mode. |
119 void cancelWithError(const ResourceError&); | 119 void cancelWithError(const ResourceError&); |
120 | 120 |
121 // Notify Inspector and log to console about resource response. Use this | 121 // Notify Inspector and log to console about resource response. Use this |
122 // method if response is not going to be finished normally. | 122 // method if response is not going to be finished normally. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // used to populate the HTTP Referer header when following the redirect. | 253 // used to populate the HTTP Referer header when following the redirect. |
254 bool m_didRedirect; | 254 bool m_didRedirect; |
255 Referrer m_referrerAfterRedirect; | 255 Referrer m_referrerAfterRedirect; |
256 | 256 |
257 RawResourceClientStateChecker m_checker; | 257 RawResourceClientStateChecker m_checker; |
258 }; | 258 }; |
259 | 259 |
260 } // namespace blink | 260 } // namespace blink |
261 | 261 |
262 #endif // DocumentThreadableLoader_h | 262 #endif // DocumentThreadableLoader_h |
OLD | NEW |