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

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

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportState.h » ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 50
51 // 51 //
52 // Owning imported Document lifetime. It also implements ResourceClient through ResourceOwner 52 // Owning imported Document lifetime. It also implements ResourceClient through ResourceOwner
53 // to feed fetched bytes to the DocumentWriter of the imported document. 53 // to feed fetched bytes to the DocumentWriter of the imported document.
54 // HTMLImportLoader is owned by HTMLImportsController. 54 // HTMLImportLoader is owned by HTMLImportsController.
55 // 55 //
56 // 56 //
57 class HTMLImportLoader final : public NoBaseWillBeGarbageCollectedFinalized<HTML ImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient { 57 class HTMLImportLoader final : public NoBaseWillBeGarbageCollectedFinalized<HTML ImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient {
58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLImportLoader); 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLImportLoader);
59 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(HTMLImportLoader);
59 public: 60 public:
60 enum State { 61 enum State {
61 StateLoading, 62 StateLoading,
62 StateWritten, 63 StateWritten,
63 StateParsed, 64 StateParsed,
64 StateLoaded, 65 StateLoaded,
65 StateError 66 StateError
66 }; 67 };
67 68
68 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController * controller) 69 static PassOwnPtrWillBeRawPtr<HTMLImportLoader> create(HTMLImportsController * controller)
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports; 126 WillBeHeapVector<RawPtrWillBeMember<HTMLImportChild>> m_imports;
126 State m_state; 127 State m_state;
127 RefPtrWillBeMember<Document> m_document; 128 RefPtrWillBeMember<Document> m_document;
128 RefPtrWillBeMember<DocumentWriter> m_writer; 129 RefPtrWillBeMember<DocumentWriter> m_writer;
129 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue; 130 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_microtaskQueue;
130 }; 131 };
131 132
132 } // namespace blink 133 } // namespace blink
133 134
134 #endif // HTMLImportLoader_h 135 #endif // HTMLImportLoader_h
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698