Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_ | |
| 7 | |
| 8 #include "chrome/browser/service/service_process_control.h" | |
| 9 | |
| 10 class DOMUI; | |
| 11 | |
| 12 namespace remoting { | |
| 13 | |
| 14 class RemotingOptionsHandler | |
|
Alpha Left Google
2011/01/11 23:02:46
Comments needed for this class. More importantly I
Sergey Ulanov
2011/01/12 21:43:23
Done.
| |
| 15 : public ServiceProcessControl::MessageHandler { | |
| 16 public: | |
| 17 RemotingOptionsHandler(); | |
| 18 virtual ~RemotingOptionsHandler(); | |
| 19 | |
| 20 void Init(DOMUI* dom_ui); | |
| 21 | |
| 22 // ServiceProcessControl::MessageHandler interface. | |
| 23 virtual void OnRemotingHostInfo( | |
| 24 const remoting::ChromotingHostInfo& host_info); | |
| 25 | |
| 26 private: | |
| 27 void SetStatus(bool enabled, const std::string& login); | |
| 28 | |
| 29 DOMUI* dom_ui_; | |
| 30 ServiceProcessControl* process_control_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(RemotingOptionsHandler); | |
| 33 }; | |
| 34 | |
| 35 } // namespace remoting | |
| 36 | |
| 37 #endif // CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_ | |
| OLD | NEW |