| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/debugger/devtools_frontend_host.h" | 5 #include "content/browser/debugger/devtools_frontend_host.h" |
| 6 | 6 |
| 7 #include "content/browser/debugger/devtools_manager_impl.h" | 7 #include "content/browser/debugger/devtools_manager_impl.h" |
| 8 #include "content/browser/renderer_host/render_view_host_impl.h" | 8 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 9 #include "content/browser/web_contents/web_contents_impl.h" | 9 #include "content/browser/web_contents/web_contents_impl.h" |
| 10 #include "content/common/devtools_messages.h" | 10 #include "content/common/devtools_messages.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 void DevToolsFrontendHost::FrameNavigating(const std::string& url) { | 56 void DevToolsFrontendHost::FrameNavigating(const std::string& url) { |
| 57 delegate_->FrameNavigating(url); | 57 delegate_->FrameNavigating(url); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void DevToolsFrontendHost::ContentsReplaced(WebContents* new_contents) { | 60 void DevToolsFrontendHost::ContentsReplaced(WebContents* new_contents) { |
| 61 delegate_->ContentsReplaced(new_contents); | 61 delegate_->ContentsReplaced(new_contents); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void DevToolsFrontendHost::ReplacedWithAnotherClient() { |
| 65 } |
| 66 |
| 64 bool DevToolsFrontendHost::OnMessageReceived( | 67 bool DevToolsFrontendHost::OnMessageReceived( |
| 65 const IPC::Message& message) { | 68 const IPC::Message& message) { |
| 66 bool handled = true; | 69 bool handled = true; |
| 67 IPC_BEGIN_MESSAGE_MAP(DevToolsFrontendHost, message) | 70 IPC_BEGIN_MESSAGE_MAP(DevToolsFrontendHost, message) |
| 68 IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DispatchOnInspectorBackend, | 71 IPC_MESSAGE_HANDLER(DevToolsAgentMsg_DispatchOnInspectorBackend, |
| 69 OnDispatchOnInspectorBackend) | 72 OnDispatchOnInspectorBackend) |
| 70 IPC_MESSAGE_HANDLER(DevToolsHostMsg_ActivateWindow, OnActivateWindow) | 73 IPC_MESSAGE_HANDLER(DevToolsHostMsg_ActivateWindow, OnActivateWindow) |
| 71 IPC_MESSAGE_HANDLER(DevToolsHostMsg_CloseWindow, OnCloseWindow) | 74 IPC_MESSAGE_HANDLER(DevToolsHostMsg_CloseWindow, OnCloseWindow) |
| 72 IPC_MESSAGE_HANDLER(DevToolsHostMsg_MoveWindow, OnMoveWindow) | 75 IPC_MESSAGE_HANDLER(DevToolsHostMsg_MoveWindow, OnMoveWindow) |
| 73 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestSetDockSide, | 76 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestSetDockSide, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 const std::string& url, | 116 const std::string& url, |
| 114 const std::string& content) { | 117 const std::string& content) { |
| 115 delegate_->AppendToFile(url, content); | 118 delegate_->AppendToFile(url, content); |
| 116 } | 119 } |
| 117 | 120 |
| 118 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { | 121 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { |
| 119 delegate_->SetDockSide(side); | 122 delegate_->SetDockSide(side); |
| 120 } | 123 } |
| 121 | 124 |
| 122 } // namespace content | 125 } // namespace content |
| OLD | NEW |