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

Side by Side Diff: remoting/host/desktop_environment.h

Issue 2092483002: Provide access to the ID for the remoted Windows session in the network process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rsk_main
Patch Set: Addressing CR Feedback Created 4 years, 6 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
« no previous file with comments | « remoting/host/basic_desktop_environment.cc ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
7 7
8 #include <cstdint>
8 #include <memory> 9 #include <memory>
9 #include <string> 10 #include <string>
10 11
11 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 15
15 namespace base { 16 namespace base {
16 class SingleThreadTaskRunner; 17 class SingleThreadTaskRunner;
17 } // namespace base 18 } // namespace base
(...skipping 28 matching lines...) Expand all
46 virtual std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() = 0; 47 virtual std::unique_ptr<webrtc::DesktopCapturer> CreateVideoCapturer() = 0;
47 virtual std::unique_ptr<webrtc::MouseCursorMonitor> 48 virtual std::unique_ptr<webrtc::MouseCursorMonitor>
48 CreateMouseCursorMonitor() = 0; 49 CreateMouseCursorMonitor() = 0;
49 50
50 // Returns the set of all capabilities supported by |this|. 51 // Returns the set of all capabilities supported by |this|.
51 virtual std::string GetCapabilities() const = 0; 52 virtual std::string GetCapabilities() const = 0;
52 53
53 // Passes the final set of capabilities negotiated between the client and host 54 // Passes the final set of capabilities negotiated between the client and host
54 // to |this|. 55 // to |this|.
55 virtual void SetCapabilities(const std::string& capabilities) = 0; 56 virtual void SetCapabilities(const std::string& capabilities) = 0;
57
58 // Returns an id which identifies the current desktop session on Windows.
59 // Other platforms will always return the default value (UINT32_MAX).
60 virtual uint32_t GetDesktopSessionId() const = 0;
56 }; 61 };
57 62
58 // Used to create |DesktopEnvironment| instances. 63 // Used to create |DesktopEnvironment| instances.
59 class DesktopEnvironmentFactory { 64 class DesktopEnvironmentFactory {
60 public: 65 public:
61 virtual ~DesktopEnvironmentFactory() {} 66 virtual ~DesktopEnvironmentFactory() {}
62 67
63 // Creates an instance of |DesktopEnvironment|. Returns a nullptr pointer if 68 // Creates an instance of |DesktopEnvironment|. Returns a nullptr pointer if
64 // the desktop environment could not be created for any reason (if the curtain 69 // the desktop environment could not be created for any reason (if the curtain
65 // failed to active for instance). |client_session_control| must outlive 70 // failed to active for instance). |client_session_control| must outlive
66 // the created desktop environment. 71 // the created desktop environment.
67 virtual std::unique_ptr<DesktopEnvironment> Create( 72 virtual std::unique_ptr<DesktopEnvironment> Create(
68 base::WeakPtr<ClientSessionControl> client_session_control) = 0; 73 base::WeakPtr<ClientSessionControl> client_session_control) = 0;
69 74
70 // Enables or disables the curtain mode. 75 // Enables or disables the curtain mode.
71 virtual void SetEnableCurtaining(bool enable) {} 76 virtual void SetEnableCurtaining(bool enable) {}
72 77
73 // Returns |true| if created |DesktopEnvironment| instances support audio 78 // Returns |true| if created |DesktopEnvironment| instances support audio
74 // capture. 79 // capture.
75 virtual bool SupportsAudioCapture() const = 0; 80 virtual bool SupportsAudioCapture() const = 0;
76 }; 81 };
77 82
78 } // namespace remoting 83 } // namespace remoting
79 84
80 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ 85 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/basic_desktop_environment.cc ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698