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

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

Issue 644663004: Use C++11 features in core/workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/workers/Worker.cpp ('k') | Source/core/workers/WorkerEventQueue.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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const ScriptCallFrame& lastCaller = callStack->at(0); 55 const ScriptCallFrame& lastCaller = callStack->at(0);
56 consoleMessage->setURL(lastCaller.sourceURL()); 56 consoleMessage->setURL(lastCaller.sourceURL());
57 consoleMessage->setLineNumber(lastCaller.lineNumber()); 57 consoleMessage->setLineNumber(lastCaller.lineNumber());
58 } 58 }
59 m_scope->addConsoleMessage(consoleMessage); 59 m_scope->addConsoleMessage(consoleMessage);
60 } 60 }
61 61
62 ExecutionContext* WorkerConsole::context() 62 ExecutionContext* WorkerConsole::context()
63 { 63 {
64 if (!m_scope) 64 if (!m_scope)
65 return 0; 65 return nullptr;
66 return m_scope->executionContext(); 66 return m_scope->executionContext();
67 } 67 }
68 68
69 void WorkerConsole::trace(Visitor* visitor) 69 void WorkerConsole::trace(Visitor* visitor)
70 { 70 {
71 visitor->trace(m_scope); 71 visitor->trace(m_scope);
72 ConsoleBase::trace(visitor); 72 ConsoleBase::trace(visitor);
73 } 73 }
74 74
75 // FIXME: add memory getter 75 // FIXME: add memory getter
76 76
77 } // namespace blink 77 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/workers/Worker.cpp ('k') | Source/core/workers/WorkerEventQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698