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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | « Source/core/workers/WorkerConsole.cpp ('k') | Source/core/workers/WorkerLocation.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 , m_script(adoptPtr(new WorkerScriptController(*this))) 85 , m_script(adoptPtr(new WorkerScriptController(*this)))
86 , m_thread(thread) 86 , m_thread(thread)
87 , m_workerInspectorController(adoptRefWillBeNoop(new WorkerInspectorControll er(this))) 87 , m_workerInspectorController(adoptRefWillBeNoop(new WorkerInspectorControll er(this)))
88 , m_closing(false) 88 , m_closing(false)
89 , m_eventQueue(WorkerEventQueue::create(this)) 89 , m_eventQueue(WorkerEventQueue::create(this))
90 , m_workerClients(workerClients) 90 , m_workerClients(workerClients)
91 , m_timeOrigin(timeOrigin) 91 , m_timeOrigin(timeOrigin)
92 , m_terminationObserver(0) 92 , m_terminationObserver(0)
93 , m_messageStorage(ConsoleMessageStorage::createForWorker(this)) 93 , m_messageStorage(ConsoleMessageStorage::createForWorker(this))
94 { 94 {
95 ScriptWrappable::init(this);
96 setClient(this); 95 setClient(this);
97 setSecurityOrigin(SecurityOrigin::create(url)); 96 setSecurityOrigin(SecurityOrigin::create(url));
98 m_workerClients->reattachThread(); 97 m_workerClients->reattachThread();
99 m_thread->setWorkerInspectorController(m_workerInspectorController.get()); 98 m_thread->setWorkerInspectorController(m_workerInspectorController.get());
100 } 99 }
101 100
102 WorkerGlobalScope::~WorkerGlobalScope() 101 WorkerGlobalScope::~WorkerGlobalScope()
103 { 102 {
104 } 103 }
105 104
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 visitor->trace(m_workerInspectorController); 353 visitor->trace(m_workerInspectorController);
355 visitor->trace(m_eventQueue); 354 visitor->trace(m_eventQueue);
356 visitor->trace(m_workerClients); 355 visitor->trace(m_workerClients);
357 visitor->trace(m_messageStorage); 356 visitor->trace(m_messageStorage);
358 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); 357 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor);
359 ExecutionContext::trace(visitor); 358 ExecutionContext::trace(visitor);
360 EventTargetWithInlineData::trace(visitor); 359 EventTargetWithInlineData::trace(visitor);
361 } 360 }
362 361
363 } // namespace blink 362 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerConsole.cpp ('k') | Source/core/workers/WorkerLocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698