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/devtools/devtools_frontend_host.h" | 5 #include "content/browser/devtools/devtools_frontend_host.h" |
6 | 6 |
7 #include "content/browser/devtools/devtools_manager_impl.h" | 7 #include "content/browser/devtools/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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 IPC_MESSAGE_HANDLER(DevToolsHostMsg_Append, OnAppend) | 75 IPC_MESSAGE_HANDLER(DevToolsHostMsg_Append, OnAppend) |
76 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestFileSystems, | 76 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RequestFileSystems, |
77 OnRequestFileSystems) | 77 OnRequestFileSystems) |
78 IPC_MESSAGE_HANDLER(DevToolsHostMsg_AddFileSystem, OnAddFileSystem) | 78 IPC_MESSAGE_HANDLER(DevToolsHostMsg_AddFileSystem, OnAddFileSystem) |
79 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RemoveFileSystem, OnRemoveFileSystem) | 79 IPC_MESSAGE_HANDLER(DevToolsHostMsg_RemoveFileSystem, OnRemoveFileSystem) |
80 IPC_MESSAGE_UNHANDLED(handled = false) | 80 IPC_MESSAGE_UNHANDLED(handled = false) |
81 IPC_END_MESSAGE_MAP() | 81 IPC_END_MESSAGE_MAP() |
82 return handled; | 82 return handled; |
83 } | 83 } |
84 | 84 |
85 void DevToolsFrontendHost::RenderViewGone( | 85 void DevToolsFrontendHost::RenderProcessGone( |
86 base::TerminationStatus status) { | 86 base::TerminationStatus status) { |
87 switch(status) { | 87 switch(status) { |
88 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: | 88 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: |
89 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: | 89 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: |
90 case base::TERMINATION_STATUS_PROCESS_CRASHED: | 90 case base::TERMINATION_STATUS_PROCESS_CRASHED: |
91 DevToolsManager::GetInstance()->ClientHostClosing(this); | 91 DevToolsManager::GetInstance()->ClientHostClosing(this); |
92 break; | 92 break; |
93 default: | 93 default: |
94 break; | 94 break; |
95 } | 95 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void DevToolsFrontendHost::OnRemoveFileSystem( | 145 void DevToolsFrontendHost::OnRemoveFileSystem( |
146 const std::string& file_system_path) { | 146 const std::string& file_system_path) { |
147 delegate_->RemoveFileSystem(file_system_path); | 147 delegate_->RemoveFileSystem(file_system_path); |
148 } | 148 } |
149 | 149 |
150 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { | 150 void DevToolsFrontendHost::OnRequestSetDockSide(const std::string& side) { |
151 delegate_->SetDockSide(side); | 151 delegate_->SetDockSide(side); |
152 } | 152 } |
153 | 153 |
154 } // namespace content | 154 } // namespace content |
OLD | NEW |