OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ui/views/win/windows_session_change_observer.h" | 5 #include "ui/views/win/windows_session_change_observer.h" |
6 | 6 |
7 #include <wtsapi32.h> | 7 #include <wtsapi32.h> |
8 #pragma comment(lib, "wtsapi32.lib") | 8 #pragma comment(lib, "wtsapi32.lib") |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/singleton.h" | 17 #include "base/memory/singleton.h" |
17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
18 #include "base/task_runner.h" | 19 #include "base/task_runner.h" |
19 #include "ui/gfx/win/singleton_hwnd.h" | 20 #include "ui/gfx/win/singleton_hwnd.h" |
20 #include "ui/gfx/win/singleton_hwnd_observer.h" | 21 #include "ui/gfx/win/singleton_hwnd_observer.h" |
21 #include "ui/views/views_delegate.h" | 22 #include "ui/views/views_delegate.h" |
22 | 23 |
23 namespace views { | 24 namespace views { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 123 } |
123 | 124 |
124 void WindowsSessionChangeObserver::ClearCallback() { | 125 void WindowsSessionChangeObserver::ClearCallback() { |
125 if (!callback_.is_null()) { | 126 if (!callback_.is_null()) { |
126 callback_.Reset(); | 127 callback_.Reset(); |
127 WtsRegistrationNotificationManager::GetInstance()->RemoveObserver(this); | 128 WtsRegistrationNotificationManager::GetInstance()->RemoveObserver(this); |
128 } | 129 } |
129 } | 130 } |
130 | 131 |
131 } // namespace views | 132 } // namespace views |
OLD | NEW |