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

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

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
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 21 matching lines...) Expand all
32 #include "core/workers/WorkerConsole.h" 32 #include "core/workers/WorkerConsole.h"
33 33
34 #include "core/inspector/ScriptCallStack.h" 34 #include "core/inspector/ScriptCallStack.h"
35 #include "core/workers/WorkerGlobalScope.h" 35 #include "core/workers/WorkerGlobalScope.h"
36 #include "core/workers/WorkerReportingProxy.h" 36 #include "core/workers/WorkerReportingProxy.h"
37 #include "core/workers/WorkerThread.h" 37 #include "core/workers/WorkerThread.h"
38 38
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 DEFINE_GC_INFO(WorkerConsole)
43
42 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope) 44 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope)
43 : m_scope(scope) 45 : m_scope(scope)
44 { 46 {
45 ScriptWrappable::init(this); 47 ScriptWrappable::init(this);
46 } 48 }
47 49
48 WorkerConsole::~WorkerConsole() 50 WorkerConsole::~WorkerConsole()
49 { 51 {
50 } 52 }
51 53
52 void WorkerConsole::reportMessageToClient(MessageLevel level, const String& mess age, PassRefPtr<ScriptCallStack> callStack) 54 void WorkerConsole::reportMessageToClient(MessageLevel level, const String& mess age, PassRefPtr<ScriptCallStack> callStack)
53 { 55 {
54 const ScriptCallFrame& lastCaller = callStack->at(0); 56 const ScriptCallFrame& lastCaller = callStack->at(0);
55 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL()); 57 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL());
56 } 58 }
57 59
58 ExecutionContext* WorkerConsole::context() 60 ExecutionContext* WorkerConsole::context()
59 { 61 {
60 if (!m_scope) 62 if (!m_scope)
61 return 0; 63 return 0;
62 return m_scope->executionContext(); 64 return m_scope->executionContext();
63 } 65 }
64 66
65 // FIXME: add memory getter 67 // FIXME: add memory getter
66 68
67 } // namespace WebCore 69 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698