Chromium Code Reviews| 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 25 matching lines...) Expand all Loading... | |
| 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 ConsoleMessage; |
| 46 class ConsoleMessageStorage; | |
|
vsevik
2014/08/25 13:04:02
is this needed?
kozyatinskiy1
2014/08/25 14:12:39
Removed.
| |
| 46 class ScriptArguments; | 47 class ScriptArguments; |
| 48 class WorkerGlobalScope; | |
|
vsevik
2014/08/25 13:04:02
This one is already included above. Only one of th
kozyatinskiy1
2014/08/25 14:12:39
Header removed.
| |
| 47 | 49 |
| 48 class WorkerConsole FINAL : public ConsoleBase { | 50 class WorkerConsole FINAL : public ConsoleBase { |
| 49 public: | 51 public: |
| 50 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope ) | 52 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope ) |
| 51 { | 53 { |
| 52 return adoptRefWillBeNoop(new WorkerConsole(scope)); | 54 return adoptRefWillBeNoop(new WorkerConsole(scope)); |
| 53 } | 55 } |
| 54 virtual ~WorkerConsole(); | 56 virtual ~WorkerConsole(); |
| 55 | 57 |
| 56 virtual void trace(Visitor*) OVERRIDE; | 58 virtual void trace(Visitor*) OVERRIDE; |
| 57 | 59 |
| 58 protected: | 60 protected: |
| 59 virtual ExecutionContext* context() OVERRIDE; | 61 virtual ExecutionContext* context() OVERRIDE; |
| 60 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>) OVERRIDE; | 62 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>) OVERRIDE; |
| 61 | 63 |
| 62 private: | 64 private: |
| 63 explicit WorkerConsole(WorkerGlobalScope*); | 65 explicit WorkerConsole(WorkerGlobalScope*); |
| 64 | 66 |
| 65 RawPtrWillBeMember<WorkerGlobalScope> m_scope; | 67 RawPtrWillBeMember<WorkerGlobalScope> m_scope; |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace blink | 70 } // namespace blink |
| 69 | 71 |
| 70 #endif // WorkerConsole_h | 72 #endif // WorkerConsole_h |
| OLD | NEW |