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" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/browser/devtools/devtools_protocol.h" | 12 #include "content/browser/devtools/devtools_protocol.h" |
13 | 13 |
| 14 namespace base { |
| 15 class MessageLoopProxy; |
| 16 } // namespace base |
| 17 |
14 namespace content { | 18 namespace content { |
15 | 19 |
16 class DevToolsHttpHandlerDelegate; | 20 class DevToolsHttpHandlerDelegate; |
17 | 21 |
18 // This class implements reversed tethering handler. | 22 // This class implements reversed tethering handler. |
19 class TetheringHandler : public DevToolsProtocol::Handler { | 23 class TetheringHandler : public DevToolsProtocol::Handler { |
20 public: | 24 public: |
21 TetheringHandler(DevToolsHttpHandlerDelegate* delegate, | 25 TetheringHandler(DevToolsHttpHandlerDelegate* delegate, |
22 scoped_refptr<base::MessageLoopProxy> message_loop_proxy); | 26 scoped_refptr<base::MessageLoopProxy> message_loop_proxy); |
23 virtual ~TetheringHandler(); | 27 virtual ~TetheringHandler(); |
(...skipping 20 matching lines...) Expand all Loading... |
44 base::WeakPtrFactory<TetheringHandler> weak_factory_; | 48 base::WeakPtrFactory<TetheringHandler> weak_factory_; |
45 | 49 |
46 static TetheringImpl* impl_; | 50 static TetheringImpl* impl_; |
47 | 51 |
48 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); | 52 DISALLOW_COPY_AND_ASSIGN(TetheringHandler); |
49 }; | 53 }; |
50 | 54 |
51 } // namespace content | 55 } // namespace content |
52 | 56 |
53 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ | 57 #endif // CONTENT_BROWSER_DEVTOOLS_TETHERING_HANDLER_H_ |
OLD | NEW |