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

Unified Diff: sky/engine/core/html/imports/HTMLImportLoader.h

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/DocumentParser.h ('k') | sky/engine/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/imports/HTMLImportLoader.h
diff --git a/sky/engine/core/html/imports/HTMLImportLoader.h b/sky/engine/core/html/imports/HTMLImportLoader.h
index 5dc5b6bfc6c3dc92960fb3140a9b0301cda1646c..bfa7034dfd64f71577f5d6d60ad17f33e35bf710 100644
--- a/sky/engine/core/html/imports/HTMLImportLoader.h
+++ b/sky/engine/core/html/imports/HTMLImportLoader.h
@@ -42,20 +42,11 @@ namespace blink {
class CustomElementSyncMicrotaskQueue;
class Document;
-class DocumentWriter;
class HTMLImportChild;
class HTMLImportsController;
-
-//
-// Owning imported Document lifetime. It also implements ResourceClient through ResourceOwner
-// to feed fetched bytes to the DocumentWriter of the imported document.
-// HTMLImportLoader is owned by HTMLImportsController.
-//
-//
class HTMLImportLoader final : public NoBaseWillBeGarbageCollectedFinalized<HTMLImportLoader>,
- public MojoFetcher::Client,
- public DataPipeDrainer::Client {
+ public MojoFetcher::Client {
public:
enum State {
StateLoading,
@@ -108,10 +99,6 @@ private:
// MojoFetcher::Client
void OnReceivedResponse(mojo::URLResponsePtr) override;
- // DataPipeDrainer::Client
- void OnDataAvailable(const void* data, size_t num_bytes) override;
- void OnDataComplete() override;
-
State startWritingAndParsing(mojo::URLResponsePtr);
State finishWriting();
State finishParsing();
@@ -127,11 +114,9 @@ private:
WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild> > m_imports;
State m_state;
RefPtrWillBeMember<Document> m_document;
- RefPtrWillBeMember<DocumentWriter> m_writer;
RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
OwnPtr<MojoFetcher> m_fetcher;
- OwnPtr<DataPipeDrainer> m_drainer;
};
} // namespace blink
« no previous file with comments | « sky/engine/core/dom/DocumentParser.h ('k') | sky/engine/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698