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

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

Issue 299313013: Remove indirection plumbing from HTMLImportChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 6 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 | Annotate | Revision Log
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const KURL& url() const { return m_url; } 59 const KURL& url() const { return m_url; }
60 60
61 void didShareLoader(); 61 void didShareLoader();
62 void didStartLoading(); 62 void didStartLoading();
63 void importDestroyed(); 63 void importDestroyed();
64 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); } 64 WeakPtr<HTMLImportChild> weakPtr() { return m_weakFactory.createWeakPtr(); }
65 65
66 // HTMLImport 66 // HTMLImport
67 virtual Document* document() const OVERRIDE; 67 virtual Document* document() const OVERRIDE;
68 virtual bool isDone() const OVERRIDE; 68 virtual bool isDone() const OVERRIDE;
69 virtual HTMLImportLoader* loader() const OVERRIDE { return m_loader; } 69 virtual HTMLImportLoader* loader() const OVERRIDE;
70 virtual void stateWillChange() OVERRIDE; 70 virtual void stateWillChange() OVERRIDE;
71 virtual void stateDidChange() OVERRIDE; 71 virtual void stateDidChange() OVERRIDE;
72 72
73 #if !defined(NDEBUG) 73 #if !defined(NDEBUG)
74 virtual void showThis() OVERRIDE; 74 virtual void showThis() OVERRIDE;
75 #endif 75 #endif
76 76
77 void setClient(HTMLImportChildClient*); 77 void setClient(HTMLImportChildClient*);
78 void clearClient(); 78 void clearClient();
79 bool loaderHasError() const;
80 79
81 void didFinishLoading(); 80 void didFinishLoading();
82 void didFinishUpgradingCustomElements(); 81 void didFinishUpgradingCustomElements();
83 bool isLoaded() const;
84 bool isFirst() const;
85 void normalize(); 82 void normalize();
86 83
87 private: 84 private:
88 void didFinish(); 85 void didFinish();
89 void shareLoader(); 86 void shareLoader();
90 void createCustomElementMicrotaskStepIfNeeded(); 87 void createCustomElementMicrotaskStepIfNeeded();
91 88
92 KURL m_url; 89 KURL m_url;
93 WeakPtrFactory<HTMLImportChild> m_weakFactory; 90 WeakPtrFactory<HTMLImportChild> m_weakFactory;
94 WeakPtr<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep; 91 WeakPtr<CustomElementMicrotaskImportStep> m_customElementMicrotaskStep;
95 HTMLImportLoader* m_loader; 92 HTMLImportLoader* m_loader;
96 HTMLImportChildClient* m_client; 93 HTMLImportChildClient* m_client;
97 }; 94 };
98 95
99 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 96 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
100 { 97 {
101 ASSERT(!import || !import->isRoot()); 98 ASSERT(!import || !import->isRoot());
102 return static_cast<HTMLImportChild*>(import); 99 return static_cast<HTMLImportChild*>(import);
103 } 100 }
104 101
105 } // namespace WebCore 102 } // namespace WebCore
106 103
107 #endif // HTMLImportChild_h 104 #endif // HTMLImportChild_h
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp ('k') | Source/core/html/imports/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698