Infer appropriate GNU_STACK alignment for a shared library.
[chromium-blink-merge.git] / remoting / host / setup / daemon_controller_delegate_mac.h
blob78c08e80bba2c79e5ffe0f4424a0bd8490010146
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.
5 #ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_
6 #define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/host/setup/daemon_controller.h"
12 namespace remoting {
14 class DaemonControllerDelegateMac : public DaemonController::Delegate {
15 public:
16 DaemonControllerDelegateMac();
17 ~DaemonControllerDelegateMac() override;
19 // DaemonController::Delegate interface.
20 DaemonController::State GetState() override;
21 scoped_ptr<base::DictionaryValue> GetConfig() override;
22 void SetConfigAndStart(
23 scoped_ptr<base::DictionaryValue> config,
24 bool consent,
25 const DaemonController::CompletionCallback& done) override;
26 void UpdateConfig(scoped_ptr<base::DictionaryValue> config,
27 const DaemonController::CompletionCallback& done) override;
28 void Stop(const DaemonController::CompletionCallback& done) override;
29 void SetWindow(void* window_handle) override;
30 std::string GetVersion() override;
31 DaemonController::UsageStatsConsent GetUsageStatsConsent() override;
33 private:
34 void ShowPreferencePane(const std::string& config_data,
35 const DaemonController::CompletionCallback& done);
36 void RegisterForPreferencePaneNotifications(
37 const DaemonController::CompletionCallback &done);
38 void DeregisterForPreferencePaneNotifications();
39 void PreferencePaneCallbackDelegate(CFStringRef name);
41 static bool DoShowPreferencePane(const std::string& config_data);
42 static void PreferencePaneCallback(CFNotificationCenterRef center,
43 void* observer,
44 CFStringRef name,
45 const void* object,
46 CFDictionaryRef user_info);
48 DaemonController::CompletionCallback current_callback_;
50 DISALLOW_COPY_AND_ASSIGN(DaemonControllerDelegateMac);
53 } // namespace remoting
55 #endif // REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_