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

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

Issue 141143006: [import] Cleanup: get rid of ad-hoc state machine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to ToT Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLImport.cpp ('k') | Source/core/html/HTMLImportChild.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // HTMLImport 67 // HTMLImport
68 virtual bool isChild() const OVERRIDE { return true; } 68 virtual bool isChild() const OVERRIDE { return true; }
69 virtual HTMLImportRoot* root() OVERRIDE; 69 virtual HTMLImportRoot* root() OVERRIDE;
70 virtual Document* document() const OVERRIDE; 70 virtual Document* document() const OVERRIDE;
71 virtual void wasDetachedFromDocument() OVERRIDE; 71 virtual void wasDetachedFromDocument() OVERRIDE;
72 virtual void didFinishParsing() OVERRIDE; 72 virtual void didFinishParsing() OVERRIDE;
73 virtual bool isDone() const OVERRIDE; 73 virtual bool isDone() const OVERRIDE;
74 virtual bool hasLoader() const OVERRIDE; 74 virtual bool hasLoader() const OVERRIDE;
75 virtual bool ownsLoader() const OVERRIDE; 75 virtual bool ownsLoader() const OVERRIDE;
76 virtual void didUnblockFromCreatingDocument() OVERRIDE;
77 virtual void didBecomeReady() OVERRIDE;
78 virtual CustomElementMicrotaskImportStep* customElementMicrotaskStep() const OVERRIDE FINAL { return m_customElementMicrotaskStep; } 76 virtual CustomElementMicrotaskImportStep* customElementMicrotaskStep() const OVERRIDE FINAL { return m_customElementMicrotaskStep; }
77 virtual void stateDidChange() OVERRIDE;
78
79 #if !defined(NDEBUG)
80 virtual void showThis() OVERRIDE;
81 #endif
79 82
80 void setClient(HTMLImportChildClient*); 83 void setClient(HTMLImportChildClient*);
81 void clearClient(); 84 void clearClient();
82 bool loaderHasError() const; 85 bool loaderHasError() const;
83 86
84 private: 87 private:
85 // RawResourceOwner doing nothing. 88 // RawResourceOwner doing nothing.
86 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away. 89 // HTMLImportChild owns the resource so that the contents of prefetched Reso urce doesn't go away.
87 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { } 90 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRIDE { }
88 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { } 91 virtual void dataReceived(Resource*, const char*, int) OVERRIDE { }
(...skipping 15 matching lines...) Expand all
104 107
105 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import) 108 inline HTMLImportChild* toHTMLImportChild(HTMLImport* import)
106 { 109 {
107 ASSERT(!import || import->isChild()); 110 ASSERT(!import || import->isChild());
108 return static_cast<HTMLImportChild*>(import); 111 return static_cast<HTMLImportChild*>(import);
109 } 112 }
110 113
111 } // namespace WebCore 114 } // namespace WebCore
112 115
113 #endif // HTMLImportChild_h 116 #endif // HTMLImportChild_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImport.cpp ('k') | Source/core/html/HTMLImportChild.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698