| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(DevToolsTargetsUIHandler); | 62 DISALLOW_COPY_AND_ASSIGN(DevToolsTargetsUIHandler); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 class PortForwardingStatusSerializer | 65 class PortForwardingStatusSerializer |
| 66 : private DevToolsAndroidBridge::PortForwardingListener { | 66 : private DevToolsAndroidBridge::PortForwardingListener { |
| 67 public: | 67 public: |
| 68 typedef base::Callback<void(const base::Value&)> Callback; | 68 typedef base::Callback<void(const base::Value&)> Callback; |
| 69 | 69 |
| 70 PortForwardingStatusSerializer(const Callback& callback, Profile* profile); | 70 PortForwardingStatusSerializer(const Callback& callback, Profile* profile); |
| 71 virtual ~PortForwardingStatusSerializer(); | 71 ~PortForwardingStatusSerializer() override; |
| 72 | 72 |
| 73 virtual void PortStatusChanged(const ForwardingStatus& status) override; | 73 void PortStatusChanged(const ForwardingStatus& status) override; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 Callback callback_; | 76 Callback callback_; |
| 77 Profile* profile_; | 77 Profile* profile_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ | 80 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_TARGETS_UI_H_ |
| OLD | NEW |