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

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

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 6 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.h ('k') | Source/core/workers/WorkerGlobalScope.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope) 42 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope)
43 : m_scope(scope) 43 : m_scope(scope)
44 { 44 {
45 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
46 } 46 }
47 47
48 WorkerConsole::~WorkerConsole() 48 WorkerConsole::~WorkerConsole()
49 { 49 {
50 } 50 }
51 51
52 void WorkerConsole::reportMessageToClient(MessageLevel level, const String& mess age, PassRefPtr<ScriptCallStack> callStack) 52 void WorkerConsole::reportMessageToClient(MessageLevel level, const String& mess age, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack)
53 { 53 {
54 const ScriptCallFrame& lastCaller = callStack->at(0); 54 const ScriptCallFrame& lastCaller = callStack->at(0);
55 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL()); 55 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL());
56 } 56 }
57 57
58 ExecutionContext* WorkerConsole::context() 58 ExecutionContext* WorkerConsole::context()
59 { 59 {
60 if (!m_scope) 60 if (!m_scope)
61 return 0; 61 return 0;
62 return m_scope->executionContext(); 62 return m_scope->executionContext();
63 } 63 }
64 64
65 void WorkerConsole::trace(Visitor* visitor) 65 void WorkerConsole::trace(Visitor* visitor)
66 { 66 {
67 visitor->trace(m_scope); 67 visitor->trace(m_scope);
68 ConsoleBase::trace(visitor); 68 ConsoleBase::trace(visitor);
69 } 69 }
70 70
71 // FIXME: add memory getter 71 // FIXME: add memory getter
72 72
73 } // namespace WebCore 73 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerConsole.h ('k') | Source/core/workers/WorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698