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

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

Issue 131043003: [import] Refactoring: Get rid of HTMLImport::isProcessing() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed an extra blank line 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 | « no previous file | Source/core/html/HTMLImport.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool isBlockedFromRunningScript() const { return m_state <= BlockedFromRunni ngScript; } 143 bool isBlockedFromRunningScript() const { return m_state <= BlockedFromRunni ngScript; }
144 bool isBlockedFromCreatingDocument() const { return m_state <= BlockedFromCr eatingDocument; } 144 bool isBlockedFromCreatingDocument() const { return m_state <= BlockedFromCr eatingDocument; }
145 bool isBlocked() const { return m_state < Ready; } 145 bool isBlocked() const { return m_state < Ready; }
146 146
147 void appendChild(HTMLImport*); 147 void appendChild(HTMLImport*);
148 148
149 virtual HTMLImportRoot* root() = 0; 149 virtual HTMLImportRoot* root() = 0;
150 virtual Document* document() const = 0; 150 virtual Document* document() const = 0;
151 virtual void wasDetachedFromDocument() = 0; 151 virtual void wasDetachedFromDocument() = 0;
152 virtual void didFinishParsing() = 0; 152 virtual void didFinishParsing() = 0;
153 virtual bool isProcessing() const = 0;
154 virtual bool isDone() const = 0; // FIXME: Should be renamed to haveFinished Loading() 153 virtual bool isDone() const = 0; // FIXME: Should be renamed to haveFinished Loading()
154 virtual bool ownsLoader() const { return false; }
155 virtual CustomElementPendingImport* pendingImport() const { return 0; } 155 virtual CustomElementPendingImport* pendingImport() const { return 0; }
156 156
157 protected: 157 protected:
158 enum State { 158 enum State {
159 BlockedFromCreatingDocument, 159 BlockedFromCreatingDocument,
160 BlockedFromRunningScript, 160 BlockedFromRunningScript,
161 WaitingLoaderOrChildren, 161 WaitingLoaderOrChildren,
162 Ready 162 Ready
163 }; 163 };
164 164
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 HTMLImportRoot() : HTMLImport(Ready) { } 201 HTMLImportRoot() : HTMLImport(Ready) { }
202 202
203 virtual void blockerGone() = 0; 203 virtual void blockerGone() = 0;
204 virtual HTMLImportsController* toController() = 0; 204 virtual HTMLImportsController* toController() = 0;
205 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0) const = 0; 205 virtual HTMLImportChild* findLinkFor(const KURL&, HTMLImport* excluding = 0) const = 0;
206 }; 206 };
207 207
208 } // namespace WebCore 208 } // namespace WebCore
209 209
210 #endif // HTMLImport_h 210 #endif // HTMLImport_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698