| OLD | NEW |
| 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_WIN_WINDOW_STATION_AND_DESKTOP_H_ | 5 #ifndef REMOTING_HOST_WIN_WINDOW_STATION_AND_DESKTOP_H_ |
| 6 #define REMOTING_HOST_WIN_WINDOW_STATION_AND_DESKTOP_H_ | 6 #define REMOTING_HOST_WIN_WINDOW_STATION_AND_DESKTOP_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 // Scoper for a pair of window station and desktop handles. Both handles are | 14 // Scoper for a pair of window station and desktop handles. Both handles are |
| 15 // closed when the object goes out of scope. | 15 // closed when the object goes out of scope. |
| 16 class WindowStationAndDesktop { | 16 class WindowStationAndDesktop { |
| 17 public: | 17 public: |
| 18 WindowStationAndDesktop(); | 18 WindowStationAndDesktop(); |
| 19 ~WindowStationAndDesktop(); | 19 ~WindowStationAndDesktop(); |
| 20 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 private: | 34 private: |
| 35 HDESK desktop_; | 35 HDESK desktop_; |
| 36 HWINSTA window_station_; | 36 HWINSTA window_station_; |
| 37 | 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(WindowStationAndDesktop); | 38 DISALLOW_COPY_AND_ASSIGN(WindowStationAndDesktop); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace remoting | 41 } // namespace remoting |
| 42 | 42 |
| 43 #endif // REMOTING_HOST_WIN_WINDOW_STATION_AND_DESKTOP_H_ | 43 #endif // REMOTING_HOST_WIN_WINDOW_STATION_AND_DESKTOP_H_ |
| OLD | NEW |