OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 DECLARE_TRACE(); | 65 DECLARE_TRACE(); |
66 | 66 |
67 private: | 67 private: |
68 class Task; | 68 class Task; |
69 | 69 |
70 explicit ScriptRunner(Document*); | 70 explicit ScriptRunner(Document*); |
71 | 71 |
72 void movePendingScript(ScriptRunner*, ScriptLoader*); | 72 void movePendingScript(ScriptRunner*, ScriptLoader*); |
73 bool removePendingInOrderScript(ScriptLoader*); | 73 bool removePendingInOrderScript(ScriptLoader*); |
74 void scheduleReadyInOrderScripts(); | |
75 | 74 |
76 void postTask(const WebTraceLocation&); | 75 void postTask(const WebTraceLocation&); |
77 | 76 |
78 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>*
); | 77 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>*
); |
79 | 78 |
80 void executeTask(); | 79 void executeTask(); |
81 | 80 |
82 RawPtrWillBeMember<Document> m_document; | 81 RawPtrWillBeMember<Document> m_document; |
83 | 82 |
84 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; | 83 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; |
(...skipping 14 matching lines...) Expand all Loading... |
99 | 98 |
100 #if !ENABLE(OILPAN) | 99 #if !ENABLE(OILPAN) |
101 bool m_isDisposed; | 100 bool m_isDisposed; |
102 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; | 101 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; |
103 #endif | 102 #endif |
104 }; | 103 }; |
105 | 104 |
106 } // namespace blink | 105 } // namespace blink |
107 | 106 |
108 #endif // ScriptRunner_h | 107 #endif // ScriptRunner_h |
OLD | NEW |