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

Side by Side Diff: services/ui/launcher/launcher_app.h

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « services/ui/input_manager/input_manager_app.cc ('k') | services/ui/launcher/launcher_app.cc » ('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 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_LAUNCHER_LAUNCHER_APP_H_ 5 #ifndef SERVICES_UI_LAUNCHER_LAUNCHER_APP_H_
6 #define SERVICES_UI_LAUNCHER_LAUNCHER_APP_H_ 6 #define SERVICES_UI_LAUNCHER_LAUNCHER_APP_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 10
(...skipping 12 matching lines...) Expand all
23 LauncherApp(); 23 LauncherApp();
24 ~LauncherApp() override; 24 ~LauncherApp() override;
25 25
26 private: 26 private:
27 // |ApplicationDelegate|: 27 // |ApplicationDelegate|:
28 void Initialize(mojo::ApplicationImpl* app_impl) override; 28 void Initialize(mojo::ApplicationImpl* app_impl) override;
29 bool ConfigureIncomingConnection( 29 bool ConfigureIncomingConnection(
30 mojo::ApplicationConnection* connection) override; 30 mojo::ApplicationConnection* connection) override;
31 31
32 // mojo::InterfaceRequest<Launcher> implementation 32 // mojo::InterfaceRequest<Launcher> implementation
33 void Create(mojo::ApplicationConnection* connection, 33 void Create(const mojo::ConnectionContext& connection_context,
34 mojo::InterfaceRequest<Launcher> request) override; 34 mojo::InterfaceRequest<Launcher> request) override;
35 35
36 // |Launcher|: 36 // |Launcher|:
37 void Launch(const mojo::String& application_url) override; 37 void Launch(const mojo::String& application_url) override;
38 38
39 void OnLaunchTermination(uint32_t id); 39 void OnLaunchTermination(uint32_t id);
40 40
41 mojo::ApplicationImpl* app_impl_; 41 mojo::ApplicationImpl* app_impl_;
42 mojo::TracingImpl tracing_; 42 mojo::TracingImpl tracing_;
43 43
44 mojo::BindingSet<Launcher> bindings_; 44 mojo::BindingSet<Launcher> bindings_;
45 std::unordered_map<uint32_t, std::unique_ptr<LaunchInstance>> 45 std::unordered_map<uint32_t, std::unique_ptr<LaunchInstance>>
46 launch_instances_; 46 launch_instances_;
47 uint32_t next_id_; 47 uint32_t next_id_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(LauncherApp); 49 DISALLOW_COPY_AND_ASSIGN(LauncherApp);
50 }; 50 };
51 51
52 } // namespace launcher 52 } // namespace launcher
53 53
54 #endif // SERVICES_UI_LAUNCHER_LAUNCHER_APP_H_ 54 #endif // SERVICES_UI_LAUNCHER_LAUNCHER_APP_H_
OLDNEW
« no previous file with comments | « services/ui/input_manager/input_manager_app.cc ('k') | services/ui/launcher/launcher_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698