OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 29 matching lines...) Expand all Loading... |
40 class ConsoleMessage; | 40 class ConsoleMessage; |
41 class ConsoleMessageStorage; | 41 class ConsoleMessageStorage; |
42 class DocumentLoader; | 42 class DocumentLoader; |
43 class ResourceError; | 43 class ResourceError; |
44 class ResourceResponse; | 44 class ResourceResponse; |
45 class ScriptCallStack; | 45 class ScriptCallStack; |
46 class WorkerGlobalScopeProxy; | 46 class WorkerGlobalScopeProxy; |
47 | 47 |
48 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. | 48 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. |
49 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. | 49 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. |
50 class FrameConsole FINAL : public NoBaseWillBeGarbageCollected<FrameConsole> { | 50 class FrameConsole final : public NoBaseWillBeGarbageCollected<FrameConsole> { |
51 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); | 51 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); |
52 public: | 52 public: |
53 static PassOwnPtrWillBeRawPtr<FrameConsole> create(LocalFrame& frame) | 53 static PassOwnPtrWillBeRawPtr<FrameConsole> create(LocalFrame& frame) |
54 { | 54 { |
55 return adoptPtrWillBeNoop(new FrameConsole(frame)); | 55 return adoptPtrWillBeNoop(new FrameConsole(frame)); |
56 } | 56 } |
57 | 57 |
58 void addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>); | 58 void addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>); |
59 void adoptWorkerMessagesAfterTermination(WorkerGlobalScopeProxy*); | 59 void adoptWorkerMessagesAfterTermination(WorkerGlobalScopeProxy*); |
60 | 60 |
(...skipping 20 matching lines...) Expand all Loading... |
81 return *m_frame; | 81 return *m_frame; |
82 } | 82 } |
83 | 83 |
84 RawPtrWillBeMember<LocalFrame> m_frame; | 84 RawPtrWillBeMember<LocalFrame> m_frame; |
85 OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage; | 85 OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif // FrameConsole_h | 90 #endif // FrameConsole_h |
OLD | NEW |