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

Side by Side Diff: Source/core/dom/custom/CustomElementScheduler.h

Issue 1304043002: Make classes and structures in core/dom 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
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class CustomElementDescriptor; 44 class CustomElementDescriptor;
45 class CustomElementMicrotaskImportStep; 45 class CustomElementMicrotaskImportStep;
46 class CustomElementMicrotaskStep; 46 class CustomElementMicrotaskStep;
47 class CustomElementRegistrationContext; 47 class CustomElementRegistrationContext;
48 class HTMLImportChild; 48 class HTMLImportChild;
49 49
50 class CustomElementScheduler final : public NoBaseWillBeGarbageCollected<CustomE lementScheduler> { 50 class CustomElementScheduler final : public NoBaseWillBeGarbageCollected<CustomE lementScheduler> {
51 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CustomElementScheduler);
51 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler); 52 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementScheduler);
52 public: 53 public:
53 54
54 static void scheduleCallback(PassRefPtrWillBeRawPtr<CustomElementLifecycleCa llbacks>, PassRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::Call backType); 55 static void scheduleCallback(PassRefPtrWillBeRawPtr<CustomElementLifecycleCa llbacks>, PassRefPtrWillBeRawPtr<Element>, CustomElementLifecycleCallbacks::Call backType);
55 static void scheduleAttributeChangedCallback(PassRefPtrWillBeRawPtr<CustomEl ementLifecycleCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& n ame, const AtomicString& oldValue, const AtomicString& newValue); 56 static void scheduleAttributeChangedCallback(PassRefPtrWillBeRawPtr<CustomEl ementLifecycleCallbacks>, PassRefPtrWillBeRawPtr<Element>, const AtomicString& n ame, const AtomicString& oldValue, const AtomicString& newValue);
56 57
57 static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri ptor&); 58 static void resolveOrScheduleResolution(PassRefPtrWillBeRawPtr<CustomElement RegistrationContext>, PassRefPtrWillBeRawPtr<Element>, const CustomElementDescri ptor&);
58 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*); 59 static CustomElementMicrotaskImportStep* scheduleImport(HTMLImportChild*);
59 60
60 static void microtaskDispatcherDidFinish(); 61 static void microtaskDispatcherDidFinish();
61 static void callbackDispatcherDidFinish(); 62 static void callbackDispatcherDidFinish();
62 63
63 private: 64 private:
64 CustomElementScheduler() { } 65 CustomElementScheduler() { }
65 66
66 static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle mentMicrotaskStep>, bool importIsSync = true); 67 static void enqueueMicrotaskStep(Document&, PassOwnPtrWillBeRawPtr<CustomEle mentMicrotaskStep>, bool importIsSync = true);
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // CustomElementScheduler_h 72 #endif // CustomElementScheduler_h
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementProcessingStep.h ('k') | Source/core/dom/custom/CustomElementUpgradeCandidateMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698