OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_WORKER_DOMAIN_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_WORKER_DOMAIN_HANDLER_H_ |
| 7 |
| 8 #include "content/browser/devtools/protocol/devtools_protocol_handler.h" |
| 9 |
| 10 namespace content { |
| 11 namespace devtools { |
| 12 namespace worker { |
| 13 |
| 14 class Handler { |
| 15 public: |
| 16 typedef DevToolsProtocolFrontend::Response Response; |
| 17 |
| 18 Handler(); |
| 19 virtual ~Handler(); |
| 20 |
| 21 void OnClientDetached(); |
| 22 void SetRenderViewHost(RenderViewHostImpl* host); |
| 23 void SetFrontend(scoped_ptr<Frontend> frontend); |
| 24 |
| 25 Response DisconnectFromWorker(int worker_id); |
| 26 |
| 27 private: |
| 28 scoped_ptr<Frontend> frontend_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(Handler); |
| 31 }; |
| 32 |
| 33 } // namespace worker |
| 34 } // namespace devtools |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_WORKER_DOMAIN_HANDLER_H_ |
OLD | NEW |