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

Side by Side Diff: remoting/host/setup/daemon_controller_delegate_linux.h

Issue 23606019: Refactor the daemon controller so that the callbacks are called on the caller thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the license Created 7 years, 3 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 2013 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 REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "remoting/host/setup/daemon_controller.h"
10
11 namespace remoting {
12
13 class DaemonControllerDelegateLinux : public DaemonController::Delegate {
14 public:
15 DaemonControllerDelegateLinux();
16 virtual ~DaemonControllerDelegateLinux();
17
18 // DaemonController::Delegate interface.
19 virtual DaemonController::State GetState() OVERRIDE;
20 virtual scoped_ptr<base::DictionaryValue> GetConfig() OVERRIDE;
21 virtual void SetConfigAndStart(
22 scoped_ptr<base::DictionaryValue> config,
23 bool consent,
24 const DaemonController::CompletionCallback& done) OVERRIDE;
25 virtual void UpdateConfig(
26 scoped_ptr<base::DictionaryValue> config,
27 const DaemonController::CompletionCallback& done) OVERRIDE;
28 virtual void Stop(const DaemonController::CompletionCallback& done) OVERRIDE;
29 virtual void SetWindow(void* window_handle) OVERRIDE;
30 virtual std::string GetVersion() OVERRIDE;
31 virtual DaemonController::UsageStatsConsent GetUsageStatsConsent() OVERRIDE;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateLinux);
35 };
36
37 } // namespace remoting
38
39 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
OLDNEW
« no previous file with comments | « remoting/host/setup/daemon_controller.cc ('k') | remoting/host/setup/daemon_controller_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698