| Index: chrome/browser/remoting/remoting_options_handler.h
|
| diff --git a/chrome/browser/remoting/remoting_options_handler.h b/chrome/browser/remoting/remoting_options_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8a15cd3dae62ae9604d2dbfbc2ff9a4ea5bc62cd
|
| --- /dev/null
|
| +++ b/chrome/browser/remoting/remoting_options_handler.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_
|
| +#define CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_
|
| +
|
| +#include "chrome/browser/service/service_process_control.h"
|
| +
|
| +class DOMUI;
|
| +
|
| +namespace remoting {
|
| +
|
| +// Remoting options handler is responsinble for showing correct status
|
| +// of the chromoting host in the preferences. It listens to the
|
| +// messages from the service process (by registering MessageHandler
|
| +// callback in the ServiceProcessControl) and updates current status
|
| +// as neccessary.
|
| +class RemotingOptionsHandler
|
| + : public ServiceProcessControl::MessageHandler {
|
| + public:
|
| + RemotingOptionsHandler();
|
| + virtual ~RemotingOptionsHandler();
|
| +
|
| + void Init(DOMUI* dom_ui);
|
| +
|
| + // ServiceProcessControl::MessageHandler interface.
|
| + virtual void OnRemotingHostInfo(
|
| + const remoting::ChromotingHostInfo& host_info);
|
| +
|
| + private:
|
| + void SetStatus(bool enabled, const std::string& login);
|
| +
|
| + DOMUI* dom_ui_;
|
| + ServiceProcessControl* process_control_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(RemotingOptionsHandler);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_
|
|
|