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

Side by Side Diff: content/common/mojo/current_thread_loader.h

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 | « content/common/mojo/DEPS ('k') | content/common/mojo/mojo_shell_connection_impl.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_ 5 #ifndef CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
6 #define CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_ 6 #define CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "mojo/shell/loader.h" 12 #include "services/shell/loader.h"
13 #include "mojo/shell/public/cpp/shell_client.h" 13 #include "services/shell/public/cpp/shell_client.h"
14 #include "mojo/shell/public/cpp/shell_connection.h" 14 #include "services/shell/public/cpp/shell_connection.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 // A Loader which loads a single type of app from a mojo::ShellClientFactory on 18 // A Loader which loads a single type of app from a mojo::ShellClientFactory on
19 // the current thread. 19 // the current thread.
20 class CurrentThreadLoader : public mojo::shell::Loader { 20 class CurrentThreadLoader : public mojo::shell::Loader {
21 public: 21 public:
22 using ApplicationFactory = 22 using ApplicationFactory =
23 base::Callback<std::unique_ptr<mojo::ShellClient>()>; 23 base::Callback<std::unique_ptr<mojo::ShellClient>()>;
24 24
(...skipping 13 matching lines...) Expand all
38 std::unique_ptr<mojo::ShellClient> shell_client_; 38 std::unique_ptr<mojo::ShellClient> shell_client_;
39 39
40 std::vector<std::unique_ptr<mojo::ShellConnection>> connections_; 40 std::vector<std::unique_ptr<mojo::ShellConnection>> connections_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(CurrentThreadLoader); 42 DISALLOW_COPY_AND_ASSIGN(CurrentThreadLoader);
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_ 47 #endif // CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
OLDNEW
« no previous file with comments | « content/common/mojo/DEPS ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698