OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/protocol/inspector_handler.h" | 5 #include "content/browser/devtools/protocol/inspector_handler.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 namespace devtools { | 8 namespace devtools { |
9 namespace inspector { | 9 namespace inspector { |
10 | 10 |
11 InspectorHandler::InspectorHandler() { | 11 InspectorHandler::InspectorHandler() { |
12 } | 12 } |
13 | 13 |
14 InspectorHandler::~InspectorHandler() { | 14 InspectorHandler::~InspectorHandler() { |
15 } | 15 } |
16 | 16 |
17 void InspectorHandler::SetClient(scoped_ptr<Client> client) { | 17 void InspectorHandler::SetClient(scoped_ptr<Client> client) { |
18 client_.swap(client); | 18 client_.swap(client); |
19 } | 19 } |
20 | 20 |
| 21 void InspectorHandler::TargetCrashed() { |
| 22 client_->TargetCrashed(TargetCrashedParams::Create()); |
| 23 } |
| 24 |
21 } // namespace inspector | 25 } // namespace inspector |
22 } // namespace devtools | 26 } // namespace devtools |
23 } // namespace content | 27 } // namespace content |
OLD | NEW |