OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 c->dataSent(this, bytesSent, totalBytesToBeSent); | 106 c->dataSent(this, bytesSent, totalBytesToBeSent); |
107 } | 107 } |
108 | 108 |
109 void RawResource::didDownloadData(int dataLength) | 109 void RawResource::didDownloadData(int dataLength) |
110 { | 110 { |
111 ResourceClientWalker<RawResourceClient> w(m_clients); | 111 ResourceClientWalker<RawResourceClient> w(m_clients); |
112 while (RawResourceClient* c = w.next()) | 112 while (RawResourceClient* c = w.next()) |
113 c->dataDownloaded(this, dataLength); | 113 c->dataDownloaded(this, dataLength); |
114 } | 114 } |
115 | 115 |
| 116 void RawResource::didAddParserResourceMessageFilter() |
| 117 { |
| 118 ResourceClientWalker<RawResourceClient> w(m_clients); |
| 119 while (RawResourceClient* c = w.next()) |
| 120 c->parserResourceMessageFilterAdded(this); |
| 121 } |
| 122 |
116 void RawResource::setDefersLoading(bool defers) | 123 void RawResource::setDefersLoading(bool defers) |
117 { | 124 { |
118 if (m_loader) | 125 if (m_loader) |
119 m_loader->setDefersLoading(defers); | 126 m_loader->setDefersLoading(defers); |
120 } | 127 } |
121 | 128 |
122 void RawResource::setDataBufferingPolicy(DataBufferingPolicy dataBufferingPolicy
) | 129 void RawResource::setDataBufferingPolicy(DataBufferingPolicy dataBufferingPolicy
) |
123 { | 130 { |
124 m_options.dataBufferingPolicy = dataBufferingPolicy; | 131 m_options.dataBufferingPolicy = dataBufferingPolicy; |
125 clear(); | 132 clear(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 return true; | 192 return true; |
186 } | 193 } |
187 | 194 |
188 void RawResource::clear() | 195 void RawResource::clear() |
189 { | 196 { |
190 m_data.clear(); | 197 m_data.clear(); |
191 setEncodedSize(0); | 198 setEncodedSize(0); |
192 } | 199 } |
193 | 200 |
194 } // namespace WebCore | 201 } // namespace WebCore |
OLD | NEW |