| 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 #ifndef CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class TetheringImpl; | 26 class TetheringImpl; |
| 27 | 27 |
| 28 void Accepted(int port, const std::string& name); | 28 void Accepted(int port, const std::string& name); |
| 29 bool Activate(); | 29 bool Activate(); |
| 30 | 30 |
| 31 scoped_refptr<DevToolsProtocol::Response> OnBind( | 31 scoped_refptr<DevToolsProtocol::Response> OnBind( |
| 32 scoped_refptr<DevToolsProtocol::Command> command); | 32 scoped_refptr<DevToolsProtocol::Command> command); |
| 33 scoped_refptr<DevToolsProtocol::Response> OnUnbind( | 33 scoped_refptr<DevToolsProtocol::Response> OnUnbind( |
| 34 scoped_refptr<DevToolsProtocol::Command> command); | 34 scoped_refptr<DevToolsProtocol::Command> command); |
| 35 | 35 |
| 36 void SendBindSuccess(scoped_refptr<DevToolsProtocol::Command> command); |
| 37 void SendUnbindSuccess(scoped_refptr<DevToolsProtocol::Command> command); |
| 38 void SendInternalError(scoped_refptr<DevToolsProtocol::Command> command, |
| 39 const std::string& message); |
| 40 |
| 36 DevToolsHttpHandlerDelegate* delegate_; | 41 DevToolsHttpHandlerDelegate* delegate_; |
| 37 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 42 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 38 bool is_active_; | 43 bool is_active_; |
| 39 base::WeakPtrFactory<TetheringHandler> weak_factory_; | 44 base::WeakPtrFactory<TetheringHandler> weak_factory_; |
| 40 | 45 |
| 41 static TetheringImpl* impl_; | 46 static TetheringImpl* impl_; |
| 42 | 47 |
| 43 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); | 48 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace content | 51 } // namespace content |
| 47 | 52 |
| 48 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ | 53 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ |
| OLD | NEW |