| 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(); |
| 74 | 75 |
| 75 void postTask(const WebTraceLocation&); | 76 void postTask(const WebTraceLocation&); |
| 76 | 77 |
| 77 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>*
); | 78 bool executeTaskFromQueue(WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>>*
); |
| 78 | 79 |
| 79 void executeTask(); | 80 void executeTask(); |
| 80 | 81 |
| 81 RawPtrWillBeMember<Document> m_document; | 82 RawPtrWillBeMember<Document> m_document; |
| 82 | 83 |
| 83 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; | 84 WillBeHeapDeque<RawPtrWillBeMember<ScriptLoader>> m_pendingInOrderScripts; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 98 | 99 |
| 99 #if !ENABLE(OILPAN) | 100 #if !ENABLE(OILPAN) |
| 100 bool m_isDisposed; | 101 bool m_isDisposed; |
| 101 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; | 102 WeakPtrFactory<ScriptRunner> m_weakPointerFactoryForTasks; |
| 102 #endif | 103 #endif |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace blink | 106 } // namespace blink |
| 106 | 107 |
| 107 #endif // ScriptRunner_h | 108 #endif // ScriptRunner_h |
| OLD | NEW |