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

Side by Side Diff: sky/engine/core/html/imports/HTMLImportChild.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 20 matching lines...) Expand all
31 #ifndef SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_ 31 #ifndef SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_
32 #define SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_ 32 #define SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_
33 33
34 #include "sky/engine/core/html/imports/HTMLImport.h" 34 #include "sky/engine/core/html/imports/HTMLImport.h"
35 #include "sky/engine/platform/heap/Handle.h" 35 #include "sky/engine/platform/heap/Handle.h"
36 #include "sky/engine/platform/weborigin/KURL.h" 36 #include "sky/engine/platform/weborigin/KURL.h"
37 #include "sky/engine/wtf/WeakPtr.h" 37 #include "sky/engine/wtf/WeakPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class CustomElementMicrotaskImportStep;
42 class HTMLImportLoader; 41 class HTMLImportLoader;
43 class HTMLImportChildClient; 42 class HTMLImportChildClient;
44 class Element; 43 class Element;
45 class Module; 44 class Module;
46 45
47 // 46 //
48 // An import tree node subclas to encapsulate imported document 47 // An import tree node subclas to encapsulate imported document
49 // lifecycle. This class is owned by HTMLImportsController. The actual loading 48 // lifecycle. This class is owned by HTMLImportsController. The actual loading
50 // is done by HTMLImportLoader, which can be shared among multiple 49 // is done by HTMLImportLoader, which can be shared among multiple
51 // HTMLImportChild of same link URL. 50 // HTMLImportChild of same link URL.
(...skipping 26 matching lines...) Expand all
78 #if !defined(NDEBUG) 77 #if !defined(NDEBUG)
79 virtual void showThis() override; 78 virtual void showThis() override;
80 #endif 79 #endif
81 80
82 void setClient(HTMLImportChildClient*); 81 void setClient(HTMLImportChildClient*);
83 #if !ENABLE(OILPAN) 82 #if !ENABLE(OILPAN)
84 void clearClient(); 83 void clearClient();
85 #endif 84 #endif
86 85
87 void didFinishLoading(); 86 void didFinishLoading();
88 void didFinishUpgradingCustomElements();
89 void normalize(); 87 void normalize();
90 88
91 private: 89 private:
92 void didFinish(); 90 void didFinish();
93 void shareLoader(); 91 void shareLoader();
94 void createCustomElementMicrotaskStepIfNeeded();
95 void invalidateCustomElementMicrotaskStep();
96 92
97 KURL m_url; 93 KURL m_url;
98 WeakPtr<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep;
99 #if !ENABLE(OILPAN) 94 #if !ENABLE(OILPAN)
100 WeakPtrFactory<HTMLImportChild> m_weakFactory; 95 WeakPtrFactory<HTMLImportChild> m_weakFactory;
101 #endif 96 #endif
102 RawPtr<HTMLImportLoader> m_loader; 97 RawPtr<HTMLImportLoader> m_loader;
103 RawPtr<HTMLImportChildClient> m_client; 98 RawPtr<HTMLImportChildClient> m_client;
104 }; 99 };
105 100
106 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 101 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
107 { 102 {
108 ASSERT(!import || !import->isRoot()); 103 ASSERT(!import || !import->isRoot());
109 return static_cast<HTMLImportChild*>(import); 104 return static_cast<HTMLImportChild*>(import);
110 } 105 }
111 106
112 } // namespace blink 107 } // namespace blink
113 108
114 #endif // SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_ 109 #endif // SKY_ENGINE_CORE_HTML_IMPORTS_HTMLIMPORTCHILD_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/custom/CustomElementSyncMicrotaskQueue.cpp ('k') | sky/engine/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698