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

Side by Side Diff: third_party/WebKit/Source/core/html/imports/HTMLImportChild.h

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 years, 7 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 19 matching lines...) Expand all
30 30
31 #ifndef HTMLImportChild_h 31 #ifndef HTMLImportChild_h
32 #define HTMLImportChild_h 32 #define HTMLImportChild_h
33 33
34 #include "core/html/imports/HTMLImport.h" 34 #include "core/html/imports/HTMLImport.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "platform/weborigin/KURL.h" 36 #include "platform/weborigin/KURL.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class CustomElementMicrotaskImportStep; 40 class V0CustomElementMicrotaskImportStep;
41 class HTMLImportLoader; 41 class HTMLImportLoader;
42 class HTMLImportChildClient; 42 class HTMLImportChildClient;
43 class HTMLLinkElement; 43 class HTMLLinkElement;
44 44
45 // 45 //
46 // An import tree node subclass to encapsulate imported document 46 // An import tree node subclass to encapsulate imported document
47 // lifecycle. This class is owned by HTMLImportsController. The actual loading 47 // lifecycle. This class is owned by HTMLImportsController. The actual loading
48 // is done by HTMLImportLoader, which can be shared among multiple 48 // is done by HTMLImportLoader, which can be shared among multiple
49 // HTMLImportChild of same link URL. 49 // HTMLImportChild of same link URL.
50 // 50 //
(...skipping 28 matching lines...) Expand all
79 void didFinishUpgradingCustomElements(); 79 void didFinishUpgradingCustomElements();
80 void normalize(); 80 void normalize();
81 81
82 private: 82 private:
83 void didFinish(); 83 void didFinish();
84 void shareLoader(); 84 void shareLoader();
85 void createCustomElementMicrotaskStepIfNeeded(); 85 void createCustomElementMicrotaskStepIfNeeded();
86 void invalidateCustomElementMicrotaskStep(); 86 void invalidateCustomElementMicrotaskStep();
87 87
88 KURL m_url; 88 KURL m_url;
89 WeakMember<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep; 89 WeakMember<V0CustomElementMicrotaskImportStep> m_customElementMicrotaskStep;
90 Member<HTMLImportLoader> m_loader; 90 Member<HTMLImportLoader> m_loader;
91 Member<HTMLImportChildClient> m_client; 91 Member<HTMLImportChildClient> m_client;
92 }; 92 };
93 93
94 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 94 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
95 { 95 {
96 ASSERT(!import || !import->isRoot()); 96 ASSERT(!import || !import->isRoot());
97 return static_cast<HTMLImportChild*>(import); 97 return static_cast<HTMLImportChild*>(import);
98 } 98 }
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // HTMLImportChild_h 102 #endif // HTMLImportChild_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698