| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/inspector/InspectorFrontendClient.h" | 34 #include "core/inspector/InspectorFrontendClient.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "platform/wtf/HashMap.h" | 36 #include "platform/wtf/HashMap.h" |
| 37 #include "platform/wtf/Noncopyable.h" | 37 #include "platform/wtf/Noncopyable.h" |
| 38 #include "platform/wtf/text/WTFString.h" | 38 #include "platform/wtf/text/WTFString.h" |
| 39 #include "public/web/WebDevToolsFrontend.h" | 39 #include "public/web/WebDevToolsFrontend.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class DevToolsHost; | 43 class DevToolsHost; |
| 44 class WebLocalFrameImpl; | 44 class WebLocalFrameBase; |
| 45 | 45 |
| 46 class WebDevToolsFrontendImpl final : public WebDevToolsFrontend, | 46 class WebDevToolsFrontendImpl final : public WebDevToolsFrontend, |
| 47 public InspectorFrontendClient { | 47 public InspectorFrontendClient { |
| 48 WTF_MAKE_NONCOPYABLE(WebDevToolsFrontendImpl); | 48 WTF_MAKE_NONCOPYABLE(WebDevToolsFrontendImpl); |
| 49 | 49 |
| 50 public: | 50 public: |
| 51 WebDevToolsFrontendImpl(WebLocalFrameImpl*, WebDevToolsFrontendClient*); | 51 WebDevToolsFrontendImpl(WebLocalFrameBase*, WebDevToolsFrontendClient*); |
| 52 ~WebDevToolsFrontendImpl() override; | 52 ~WebDevToolsFrontendImpl() override; |
| 53 | 53 |
| 54 void DidClearWindowObject(WebLocalFrameImpl*); | 54 void DidClearWindowObject(WebLocalFrameBase*); |
| 55 | 55 |
| 56 void SendMessageToEmbedder(const WTF::String&) override; | 56 void SendMessageToEmbedder(const WTF::String&) override; |
| 57 | 57 |
| 58 bool IsUnderTest() override; | 58 bool IsUnderTest() override; |
| 59 | 59 |
| 60 void ShowContextMenu(LocalFrame*, | 60 void ShowContextMenu(LocalFrame*, |
| 61 float x, | 61 float x, |
| 62 float y, | 62 float y, |
| 63 ContextMenuProvider*) override; | 63 ContextMenuProvider*) override; |
| 64 | 64 |
| 65 void SetInjectedScriptForOrigin(const String& origin, | 65 void SetInjectedScriptForOrigin(const String& origin, |
| 66 const String& source) override; | 66 const String& source) override; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 Persistent<WebLocalFrameImpl> web_frame_; | 69 Persistent<WebLocalFrameBase> web_frame_; |
| 70 WebDevToolsFrontendClient* client_; | 70 WebDevToolsFrontendClient* client_; |
| 71 Persistent<DevToolsHost> devtools_host_; | 71 Persistent<DevToolsHost> devtools_host_; |
| 72 typedef HashMap<String, String> InjectedScriptForOriginMap; | 72 typedef HashMap<String, String> InjectedScriptForOriginMap; |
| 73 InjectedScriptForOriginMap injected_script_for_origin_; | 73 InjectedScriptForOriginMap injected_script_for_origin_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif | 78 #endif |
| OLD | NEW |