Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: chrome/browser/remoting/remoting_options_handler.h

Issue 6955010: Remove the Remoting Host component from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an errant include. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 "base/basictypes.h"
9 #include "chrome/browser/service/service_process_control.h"
10
11 class WebUI;
12
13 namespace remoting {
14
15 // Remoting options handler is responsinble for showing correct status
16 // of the chromoting host in the preferences. It listens to the
17 // messages from the service process (by registering MessageHandler
18 // callback in the ServiceProcessControl) and updates current status
19 // as neccessary.
20 class RemotingOptionsHandler : public ServiceProcessControl::MessageHandler {
21 public:
22 RemotingOptionsHandler();
23 virtual ~RemotingOptionsHandler();
24
25 void Init(WebUI* web_ui);
26
27 // ServiceProcessControl::MessageHandler interface.
28 virtual void OnRemotingHostInfo(
29 const remoting::ChromotingHostInfo& host_info);
30
31 private:
32 void SetStatus(bool enabled, bool host_enabled, bool host_configured,
33 const std::string& login);
34
35 WebUI* web_ui_;
36 ServiceProcessControl* process_control_;
37
38 DISALLOW_COPY_AND_ASSIGN(RemotingOptionsHandler);
39 };
40
41 } // namespace remoting
42
43 #endif // CHROME_BROWSER_REMOTING_REMOTING_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/remoting/directory_add_request_unittest.cc ('k') | chrome/browser/remoting/remoting_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698