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

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

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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
OLDNEW
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 REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ 5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ 6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/host/setup/daemon_controller.h" 11 #include "remoting/host/setup/daemon_controller.h"
11 12
12 namespace remoting { 13 namespace remoting {
13 14
14 class DaemonControllerDelegateLinux : public DaemonController::Delegate { 15 class DaemonControllerDelegateLinux : public DaemonController::Delegate {
15 public: 16 public:
16 DaemonControllerDelegateLinux(); 17 DaemonControllerDelegateLinux();
17 ~DaemonControllerDelegateLinux() override; 18 ~DaemonControllerDelegateLinux() override;
18 19
19 // DaemonController::Delegate interface. 20 // DaemonController::Delegate interface.
20 DaemonController::State GetState() override; 21 DaemonController::State GetState() override;
21 scoped_ptr<base::DictionaryValue> GetConfig() override; 22 std::unique_ptr<base::DictionaryValue> GetConfig() override;
22 void SetConfigAndStart( 23 void SetConfigAndStart(
23 scoped_ptr<base::DictionaryValue> config, 24 std::unique_ptr<base::DictionaryValue> config,
24 bool consent, 25 bool consent,
25 const DaemonController::CompletionCallback& done) override; 26 const DaemonController::CompletionCallback& done) override;
26 void UpdateConfig(scoped_ptr<base::DictionaryValue> config, 27 void UpdateConfig(std::unique_ptr<base::DictionaryValue> config,
27 const DaemonController::CompletionCallback& done) override; 28 const DaemonController::CompletionCallback& done) override;
28 void Stop(const DaemonController::CompletionCallback& done) override; 29 void Stop(const DaemonController::CompletionCallback& done) override;
29 DaemonController::UsageStatsConsent GetUsageStatsConsent() override; 30 DaemonController::UsageStatsConsent GetUsageStatsConsent() override;
30 31
31 private: 32 private:
32 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateLinux); 33 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateLinux);
33 }; 34 };
34 35
35 } // namespace remoting 36 } // namespace remoting
36 37
37 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_ 38 #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