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

Side by Side Diff: sky/engine/core/html/imports/HTMLImportLoader.h

Issue 950523002: Delete sky/engine/core/dom/custom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
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 21 matching lines...) Expand all
32 #define SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTLOADER_H_ 32 #define SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTLOADER_H_
33 33
34 #include "sky/engine/platform/fetcher/MojoFetcher.h" 34 #include "sky/engine/platform/fetcher/MojoFetcher.h"
35 #include "sky/engine/platform/heap/Handle.h" 35 #include "sky/engine/platform/heap/Handle.h"
36 #include "sky/engine/wtf/OwnPtr.h" 36 #include "sky/engine/wtf/OwnPtr.h"
37 #include "sky/engine/wtf/PassOwnPtr.h" 37 #include "sky/engine/wtf/PassOwnPtr.h"
38 #include "sky/engine/wtf/Vector.h" 38 #include "sky/engine/wtf/Vector.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class CustomElementSyncMicrotaskQueue;
43 class Document; 42 class Document;
44 class HTMLImportChild; 43 class HTMLImportChild;
45 class HTMLImportsController; 44 class HTMLImportsController;
46 class Module; 45 class Module;
47 46
48 class HTMLImportLoader final : public MojoFetcher::Client { 47 class HTMLImportLoader final : public MojoFetcher::Client {
49 public: 48 public:
50 enum State { 49 enum State {
51 StateLoading, 50 StateLoading,
52 StateWritten, 51 StateWritten,
(...skipping 26 matching lines...) Expand all
79 78
80 #if !ENABLE(OILPAN) 79 #if !ENABLE(OILPAN)
81 void importDestroyed(); 80 void importDestroyed();
82 #endif 81 #endif
83 void startLoading(const KURL&); 82 void startLoading(const KURL&);
84 83
85 // Tells the loader that the parser is done with this import. 84 // Tells the loader that the parser is done with this import.
86 // Called by Document::finishedParsing, after DOMContentLoaded was dispatche d. 85 // Called by Document::finishedParsing, after DOMContentLoaded was dispatche d.
87 void didFinishParsing(); 86 void didFinishParsing();
88 87
89 PassRefPtr<CustomElementSyncMicrotaskQueue> microtaskQueue() const;
90
91 private: 88 private:
92 HTMLImportLoader(HTMLImportsController*); 89 HTMLImportLoader(HTMLImportsController*);
93 90
94 // MojoFetcher::Client 91 // MojoFetcher::Client
95 void OnReceivedResponse(mojo::URLResponsePtr) override; 92 void OnReceivedResponse(mojo::URLResponsePtr) override;
96 93
97 State startWritingAndParsing(mojo::URLResponsePtr); 94 State startWritingAndParsing(mojo::URLResponsePtr);
98 State finishWriting(); 95 State finishWriting();
99 State finishParsing(); 96 State finishParsing();
100 State finishLoading(); 97 State finishLoading();
101 98
102 void setState(State); 99 void setState(State);
103 void didFinishLoading(); 100 void didFinishLoading();
104 #if !ENABLE(OILPAN) 101 #if !ENABLE(OILPAN)
105 void clear(); 102 void clear();
106 #endif 103 #endif
107 104
108 RawPtr<HTMLImportsController> m_controller; 105 RawPtr<HTMLImportsController> m_controller;
109 Vector<RawPtr<HTMLImportChild> > m_imports; 106 Vector<RawPtr<HTMLImportChild> > m_imports;
110 State m_state; 107 State m_state;
111 RefPtr<Module> m_module; 108 RefPtr<Module> m_module;
112 RefPtr<Document> m_document; 109 RefPtr<Document> m_document;
113 RefPtr<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
114 110
115 OwnPtr<MojoFetcher> m_fetcher; 111 OwnPtr<MojoFetcher> m_fetcher;
116 }; 112 };
117 113
118 } // namespace blink 114 } // namespace blink
119 115
120 #endif // SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTLOADER_H_ 116 #endif // SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTLOADER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportChild.cpp ('k') | sky/engine/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698