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 27 matching lines...) Expand all Loading... |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class ConsoleMessage; | 44 class ConsoleMessage; |
45 class ScriptArguments; | 45 class ScriptArguments; |
46 class WorkerGlobalScope; | 46 class WorkerGlobalScope; |
47 | 47 |
48 class WorkerConsole FINAL : public ConsoleBase { | 48 class WorkerConsole final : public ConsoleBase { |
49 DEFINE_WRAPPERTYPEINFO(); | 49 DEFINE_WRAPPERTYPEINFO(); |
50 public: | 50 public: |
51 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope
) | 51 static PassRefPtrWillBeRawPtr<WorkerConsole> create(WorkerGlobalScope* scope
) |
52 { | 52 { |
53 return adoptRefWillBeNoop(new WorkerConsole(scope)); | 53 return adoptRefWillBeNoop(new WorkerConsole(scope)); |
54 } | 54 } |
55 virtual ~WorkerConsole(); | 55 virtual ~WorkerConsole(); |
56 | 56 |
57 virtual void trace(Visitor*) OVERRIDE; | 57 virtual void trace(Visitor*) override; |
58 | 58 |
59 protected: | 59 protected: |
60 virtual ExecutionContext* context() OVERRIDE; | 60 virtual ExecutionContext* context() override; |
61 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
OVERRIDE; | 61 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
override; |
62 | 62 |
63 private: | 63 private: |
64 explicit WorkerConsole(WorkerGlobalScope*); | 64 explicit WorkerConsole(WorkerGlobalScope*); |
65 | 65 |
66 RawPtrWillBeMember<WorkerGlobalScope> m_scope; | 66 RawPtrWillBeMember<WorkerGlobalScope> m_scope; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace blink | 69 } // namespace blink |
70 | 70 |
71 #endif // WorkerConsole_h | 71 #endif // WorkerConsole_h |
OLD | NEW |