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

Side by Side Diff: Source/core/html/imports/HTMLImportLoader.h

Issue 603903003: [Streams] Pass WebDataConsumerHandle when the response arrives. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@web-data-pipe
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/core/fileapi/FileReaderLoader.cpp ('k') | Source/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void didRemoveAllPendingStylesheet(); 96 void didRemoveAllPendingStylesheet();
97 97
98 PassRefPtrWillBeRawPtr<CustomElementSyncMicrotaskQueue> microtaskQueue() con st; 98 PassRefPtrWillBeRawPtr<CustomElementSyncMicrotaskQueue> microtaskQueue() con st;
99 99
100 virtual void trace(Visitor*) override; 100 virtual void trace(Visitor*) override;
101 101
102 private: 102 private:
103 HTMLImportLoader(HTMLImportsController*); 103 HTMLImportLoader(HTMLImportsController*);
104 104
105 // RawResourceClient 105 // RawResourceClient
106 virtual void responseReceived(Resource*, const ResourceResponse&) override; 106 virtual void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr <WebDataConsumerHandle>) override;
107 virtual void dataReceived(Resource*, const char* data, unsigned length) over ride; 107 virtual void dataReceived(Resource*, const char* data, unsigned length) over ride;
108 virtual void notifyFinished(Resource*) override; 108 virtual void notifyFinished(Resource*) override;
109 109
110 // DocumentParserClient 110 // DocumentParserClient
111 111
112 // Called after document parse is complete after DOMContentLoaded was dispat ched. 112 // Called after document parse is complete after DOMContentLoaded was dispat ched.
113 virtual void notifyParserStopped() override; 113 virtual void notifyParserStopped() override;
114 114
115 State startWritingAndParsing(const ResourceResponse&); 115 State startWritingAndParsing(const ResourceResponse&);
116 State finishWriting(); 116 State finishWriting();
(...skipping 11 matching lines...) Expand all
128 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild> > m_imports; 128 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild> > m_imports;
129 State m_state; 129 State m_state;
130 RefPtrWillBeMember<Document> m_document; 130 RefPtrWillBeMember<Document> m_document;
131 RefPtrWillBeMember<DocumentWriter> m_writer; 131 RefPtrWillBeMember<DocumentWriter> m_writer;
132 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; 132 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
133 }; 133 };
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // HTMLImportLoader_h 137 #endif // HTMLImportLoader_h
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileReaderLoader.cpp ('k') | Source/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698