OLD | NEW |
---|---|
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 24 matching lines...) Expand all Loading... | |
35 #include "core/frame/ConsoleTypes.h" | 35 #include "core/frame/ConsoleTypes.h" |
36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class ConsoleMessage; | |
45 class ScriptArguments; | 46 class ScriptArguments; |
46 | 47 |
47 class WorkerConsole FINAL : public ConsoleBase { | 48 class WorkerConsole FINAL : public ConsoleBase { |
48 public: | 49 public: |
49 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope ) | 50 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope ) |
50 { | 51 { |
51 return adoptRefWillBeNoop(new WorkerConsole(scope)); | 52 return adoptRefWillBeNoop(new WorkerConsole(scope)); |
52 } | 53 } |
53 virtual ~WorkerConsole(); | 54 virtual ~WorkerConsole(); |
54 | 55 |
55 virtual void trace(Visitor*) OVERRIDE; | 56 virtual void trace(Visitor*) OVERRIDE; |
56 | 57 |
57 protected: | 58 protected: |
58 virtual ExecutionContext* context() OVERRIDE; | 59 virtual ExecutionContext* context() OVERRIDE; |
59 virtual void reportMessageToClient(MessageLevel, const String& message, Pass RefPtrWillBeRawPtr<ScriptCallStack>) OVERRIDE; | 60 virtual void reportMessageToConsole(PassRefPtr<ConsoleMessage>) OVERRIDE; |
sof
2014/08/19 08:32:26
Please make this PassRefPtrWillBeRawPtr<ConsoleMes
kozyatinskiy1
2014/08/19 09:01:14
Done.
| |
60 | 61 |
61 private: | 62 private: |
62 explicit WorkerConsole(WorkerGlobalScope*); | 63 explicit WorkerConsole(WorkerGlobalScope*); |
63 | 64 |
64 RawPtrWillBeMember<WorkerGlobalScope> m_scope; | 65 RawPtrWillBeMember<WorkerGlobalScope> m_scope; |
65 }; | 66 }; |
66 | 67 |
67 } // namespace blink | 68 } // namespace blink |
68 | 69 |
69 #endif // WorkerConsole_h | 70 #endif // WorkerConsole_h |
OLD | NEW |