| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef InspectorFrontendClientImpl_h | 31 #ifndef InspectorFrontendClientImpl_h |
| 32 #define InspectorFrontendClientImpl_h | 32 #define InspectorFrontendClientImpl_h |
| 33 | 33 |
| 34 #include "core/inspector/InspectorFrontendClient.h" | 34 #include "core/inspector/InspectorFrontendClient.h" |
| 35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 |
| 38 class InspectorFrontendHost; | 39 class InspectorFrontendHost; |
| 39 class Page; | 40 class Page; |
| 40 } | |
| 41 | |
| 42 namespace blink { | |
| 43 | |
| 44 class WebDevToolsFrontendClient; | 41 class WebDevToolsFrontendClient; |
| 45 class WebDevToolsFrontendImpl; | 42 class WebDevToolsFrontendImpl; |
| 46 | 43 |
| 47 class InspectorFrontendClientImpl FINAL : public blink::InspectorFrontendClient
{ | 44 class InspectorFrontendClientImpl FINAL : public InspectorFrontendClient { |
| 48 WTF_MAKE_NONCOPYABLE(InspectorFrontendClientImpl); | 45 WTF_MAKE_NONCOPYABLE(InspectorFrontendClientImpl); |
| 49 public: | 46 public: |
| 50 InspectorFrontendClientImpl(blink::Page*, WebDevToolsFrontendClient*, WebDev
ToolsFrontendImpl*); | 47 InspectorFrontendClientImpl(Page*, WebDevToolsFrontendClient*, WebDevToolsFr
ontendImpl*); |
| 51 virtual ~InspectorFrontendClientImpl(); | 48 virtual ~InspectorFrontendClientImpl(); |
| 52 virtual void trace(Visitor*) OVERRIDE; | 49 virtual void trace(Visitor*) OVERRIDE; |
| 53 | 50 |
| 54 // InspectorFrontendClient methods: | 51 // InspectorFrontendClient methods: |
| 55 virtual void windowObjectCleared() OVERRIDE; | 52 virtual void windowObjectCleared() OVERRIDE; |
| 56 | 53 |
| 57 virtual void sendMessageToBackend(const WTF::String&) OVERRIDE; | 54 virtual void sendMessageToBackend(const WTF::String&) OVERRIDE; |
| 58 | 55 |
| 59 virtual void sendMessageToEmbedder(const WTF::String&) OVERRIDE; | 56 virtual void sendMessageToEmbedder(const WTF::String&) OVERRIDE; |
| 60 | 57 |
| 61 virtual bool isUnderTest() OVERRIDE; | 58 virtual bool isUnderTest() OVERRIDE; |
| 62 | 59 |
| 63 virtual void dispose() OVERRIDE; | 60 virtual void dispose() OVERRIDE; |
| 64 | 61 |
| 65 private: | 62 private: |
| 66 RawPtrWillBeMember<blink::Page> m_frontendPage; | 63 RawPtrWillBeMember<Page> m_frontendPage; |
| 67 WebDevToolsFrontendClient* m_client; | 64 WebDevToolsFrontendClient* m_client; |
| 68 RefPtrWillBeMember<blink::InspectorFrontendHost> m_frontendHost; | 65 RefPtrWillBeMember<InspectorFrontendHost> m_frontendHost; |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 } // namespace blink | 68 } // namespace blink |
| 72 | 69 |
| 73 #endif | 70 #endif |
| OLD | NEW |