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

Side by Side Diff: components/mus/ws/connection_manager.h

Issue 1735583002: Rename WeakBindingSet/WeakInterfacePtrSet to BindingSet/InterfacePtrSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « components/mus/mus_app.h ('k') | components/mus/ws/window_tree_factory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ 5 #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/timer/timer.h" 16 #include "base/timer/timer.h"
17 #include "components/mus/public/interfaces/display.mojom.h" 17 #include "components/mus/public/interfaces/display.mojom.h"
18 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" 18 #include "components/mus/public/interfaces/window_manager_factory.mojom.h"
19 #include "components/mus/public/interfaces/window_tree.mojom.h" 19 #include "components/mus/public/interfaces/window_tree.mojom.h"
20 #include "components/mus/public/interfaces/window_tree_host.mojom.h" 20 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
21 #include "components/mus/surfaces/surfaces_state.h" 21 #include "components/mus/surfaces/surfaces_state.h"
22 #include "components/mus/ws/ids.h" 22 #include "components/mus/ws/ids.h"
23 #include "components/mus/ws/operation.h" 23 #include "components/mus/ws/operation.h"
24 #include "components/mus/ws/server_window_delegate.h" 24 #include "components/mus/ws/server_window_delegate.h"
25 #include "components/mus/ws/server_window_observer.h" 25 #include "components/mus/ws/server_window_observer.h"
26 #include "components/mus/ws/window_tree_host_impl.h" 26 #include "components/mus/ws/window_tree_host_impl.h"
27 #include "mojo/converters/surfaces/custom_surface_converter.h" 27 #include "mojo/converters/surfaces/custom_surface_converter.h"
28 #include "mojo/public/cpp/bindings/array.h" 28 #include "mojo/public/cpp/bindings/array.h"
29 #include "mojo/public/cpp/bindings/binding.h" 29 #include "mojo/public/cpp/bindings/binding.h"
30 #include "mojo/public/cpp/bindings/weak_binding_set.h" 30 #include "mojo/public/cpp/bindings/binding_set.h"
31 #include "mojo/public/cpp/bindings/weak_interface_ptr_set.h" 31 #include "mojo/public/cpp/bindings/interface_ptr_set.h"
32 32
33 namespace mus { 33 namespace mus {
34 namespace ws { 34 namespace ws {
35 35
36 class ClientConnection; 36 class ClientConnection;
37 class ConnectionManagerDelegate; 37 class ConnectionManagerDelegate;
38 class ServerWindow; 38 class ServerWindow;
39 class WindowManagerFactoryService; 39 class WindowManagerFactoryService;
40 class WindowTreeHostConnection; 40 class WindowTreeHostConnection;
41 class WindowTreeImpl; 41 class WindowTreeImpl;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 bool in_destructor_; 313 bool in_destructor_;
314 314
315 // Maps from window manager change id to the client that initiated the 315 // Maps from window manager change id to the client that initiated the
316 // request. 316 // request.
317 InFlightWindowManagerChangeMap in_flight_wm_change_map_; 317 InFlightWindowManagerChangeMap in_flight_wm_change_map_;
318 318
319 // Next id supplied to the window manager. 319 // Next id supplied to the window manager.
320 uint32_t next_wm_change_id_; 320 uint32_t next_wm_change_id_;
321 321
322 mojo::WeakBindingSet<mojom::DisplayManager> display_manager_bindings_; 322 mojo::BindingSet<mojom::DisplayManager> display_manager_bindings_;
323 // WARNING: only use these once |got_valid_frame_decorations_| is true. 323 // WARNING: only use these once |got_valid_frame_decorations_| is true.
324 // TODO(sky): refactor this out into its own class. 324 // TODO(sky): refactor this out into its own class.
325 mojo::WeakInterfacePtrSet<mojom::DisplayManagerObserver> 325 mojo::InterfacePtrSet<mojom::DisplayManagerObserver>
326 display_manager_observers_; 326 display_manager_observers_;
327 327
328 bool got_valid_frame_decorations_; 328 bool got_valid_frame_decorations_;
329 329
330 scoped_ptr<WindowManagerFactoryService> window_manager_factory_service_; 330 scoped_ptr<WindowManagerFactoryService> window_manager_factory_service_;
331 331
332 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 332 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
333 }; 333 };
334 334
335 } // namespace ws 335 } // namespace ws
336 } // namespace mus 336 } // namespace mus
337 337
338 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ 338 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
OLDNEW
« no previous file with comments | « components/mus/mus_app.h ('k') | components/mus/ws/window_tree_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698