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

Side by Side Diff: services/ui/view_manager/view_associate_table.h

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased 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
OLDNEW
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 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ 5 #ifndef SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_
6 #define SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ 6 #define SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "mojo/common/binding_set.h" 14 #include "mojo/common/binding_set.h"
15 #include "mojo/public/cpp/application/application_impl.h"
16 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h" 15 #include "mojo/services/ui/views/interfaces/view_associates.mojom.h"
17 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h" 16 #include "mojo/services/ui/views/interfaces/view_manager.mojom.h"
18 17
19 namespace view_manager { 18 namespace view_manager {
20 19
21 // Maintains a table of all connected view associates. 20 // Maintains a table of all connected view associates.
22 class ViewAssociateTable : public mojo::ui::ViewAssociateOwner { 21 class ViewAssociateTable : public mojo::ui::ViewAssociateOwner {
23 public: 22 public:
24 using AssociateConnectionErrorCallback = 23 using AssociateConnectionErrorCallback =
25 base::Callback<void(const std::string&)>; 24 base::Callback<void(const std::string&)>;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 uint32_t pending_connection_count_ = 0u; 74 uint32_t pending_connection_count_ = 0u;
76 bool waiting_to_register_associates_ = true; 75 bool waiting_to_register_associates_ = true;
77 std::vector<base::Closure> deferred_work_; 76 std::vector<base::Closure> deferred_work_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(ViewAssociateTable); 78 DISALLOW_COPY_AND_ASSIGN(ViewAssociateTable);
80 }; 79 };
81 80
82 } // namespace view_manager 81 } // namespace view_manager
83 82
84 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_ 83 #endif // SERVICES_UI_VIEW_MANAGER_VIEW_ASSOCIATE_TABLE_H_
OLDNEW
« no previous file with comments | « services/ui/view_manager/tests/view_manager_test.cc ('k') | services/util/cpp/factory_service_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698