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/frame/ConsoleTypes.h" | 36 #include "core/frame/ConsoleTypes.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
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 WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class ScriptArguments; | 44 class ScriptArguments; |
45 | 45 |
46 class WorkerConsole : public RefCounted<WorkerConsole>, public ConsoleBase, publ
ic ScriptWrappable { | 46 class WorkerConsole FINAL : public RefCounted<WorkerConsole>, public ConsoleBase
, public ScriptWrappable { |
47 public: | 47 public: |
48 using RefCounted<WorkerConsole>::ref; | 48 using RefCounted<WorkerConsole>::ref; |
49 using RefCounted<WorkerConsole>::deref; | 49 using RefCounted<WorkerConsole>::deref; |
50 | 50 |
51 static PassRefPtr<WorkerConsole> create(WorkerGlobalScope* scope) { return a
doptRef(new WorkerConsole(scope)); } | 51 static PassRefPtr<WorkerConsole> create(WorkerGlobalScope* scope) { return a
doptRef(new WorkerConsole(scope)); } |
52 virtual ~WorkerConsole(); | 52 virtual ~WorkerConsole(); |
53 | 53 |
54 protected: | 54 protected: |
55 virtual ExecutionContext* context(); | 55 virtual ExecutionContext* context() OVERRIDE; |
56 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtr<ScriptCallStack>) OVERRIDE; | 56 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtr<ScriptCallStack>) OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
59 explicit WorkerConsole(WorkerGlobalScope*); | 59 explicit WorkerConsole(WorkerGlobalScope*); |
60 | 60 |
61 virtual void refConsole() { ref(); } | 61 virtual void refConsole() OVERRIDE { ref(); } |
62 virtual void derefConsole() { deref(); } | 62 virtual void derefConsole() OVERRIDE { deref(); } |
63 | 63 |
64 WorkerGlobalScope* m_scope; | 64 WorkerGlobalScope* m_scope; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace WebCore | 67 } // namespace WebCore |
68 | 68 |
69 #endif // WorkerConsole_h | 69 #endif // WorkerConsole_h |
OLD | NEW |