Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: Source/core/fetch/RawResource.cpp

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Missing include Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698