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

Side by Side Diff: Source/core/workers/WorkerConsole.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/Worker.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 #include "core/workers/WorkerGlobalScope.h" 36 #include "core/workers/WorkerGlobalScope.h"
37 #include "core/workers/WorkerReportingProxy.h" 37 #include "core/workers/WorkerReportingProxy.h"
38 #include "core/workers/WorkerThread.h" 38 #include "core/workers/WorkerThread.h"
39 39
40 40
41 namespace blink { 41 namespace blink {
42 42
43 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope) 43 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope)
44 : m_scope(scope) 44 : m_scope(scope)
45 { 45 {
46 ScriptWrappable::init(this);
47 } 46 }
48 47
49 WorkerConsole::~WorkerConsole() 48 WorkerConsole::~WorkerConsole()
50 { 49 {
51 } 50 }
52 51
53 void WorkerConsole::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage > consoleMessage) 52 void WorkerConsole::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage > consoleMessage)
54 { 53 {
55 const ScriptCallFrame& lastCaller = consoleMessage->callStack()->at(0); 54 const ScriptCallFrame& lastCaller = consoleMessage->callStack()->at(0);
56 consoleMessage->setURL(lastCaller.sourceURL()); 55 consoleMessage->setURL(lastCaller.sourceURL());
(...skipping 10 matching lines...) Expand all
67 66
68 void WorkerConsole::trace(Visitor* visitor) 67 void WorkerConsole::trace(Visitor* visitor)
69 { 68 {
70 visitor->trace(m_scope); 69 visitor->trace(m_scope);
71 ConsoleBase::trace(visitor); 70 ConsoleBase::trace(visitor);
72 } 71 }
73 72
74 // FIXME: add memory getter 73 // FIXME: add memory getter
75 74
76 } // namespace blink 75 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/workers/Worker.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698