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

Side by Side Diff: shell/context.h

Issue 973203004: Make the shell work in multiprocess mode some apps. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: better (?) comment Created 5 years, 9 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 | « shell/app_child_process.cc ('k') | shell/desktop/mojo_main.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 SHELL_CONTEXT_H_ 5 #ifndef SHELL_CONTEXT_H_
6 #define SHELL_CONTEXT_H_ 6 #define SHELL_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "mojo/edk/embedder/process_delegate.h" 11 #include "mojo/edk/embedder/process_delegate.h"
12 #include "shell/application_manager/application_manager.h" 12 #include "shell/application_manager/application_manager.h"
13 #include "shell/task_runners.h" 13 #include "shell/task_runners.h"
14 #include "shell/url_resolver.h" 14 #include "shell/url_resolver.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 17
18 namespace shell { 18 namespace shell {
19 19
20 class ExternalApplicationListener; 20 class ExternalApplicationListener;
21 class NativeApplicationLoader; 21 class NativeApplicationLoader;
22 22
23 // The "global" context for the shell's main process. 23 // The "global" context for the shell's main process.
24 class Context : ApplicationManager::Delegate, embedder::ProcessDelegate { 24 class Context : public ApplicationManager::Delegate,
25 public embedder::ProcessDelegate {
25 public: 26 public:
26 Context(); 27 Context();
27 ~Context() override; 28 ~Context() override;
28 29
29 static void EnsureEmbedderIsInitialized(); 30 static void EnsureEmbedderIsInitialized();
30 31
31 // Point to the directory containing installed services, such as the network 32 // Point to the directory containing installed services, such as the network
32 // service. By default this directory is used as the base URL for resolving 33 // service. By default this directory is used as the base URL for resolving
33 // unknown mojo: URLs. The network service will be loaded from this directory, 34 // unknown mojo: URLs. The network service will be loaded from this directory,
34 // even when the base URL for unknown mojo: URLs is overridden. 35 // even when the base URL for unknown mojo: URLs is overridden.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 GURL shell_file_root_; 83 GURL shell_file_root_;
83 GURL command_line_cwd_; 84 GURL command_line_cwd_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(Context); 86 DISALLOW_COPY_AND_ASSIGN(Context);
86 }; 87 };
87 88
88 } // namespace shell 89 } // namespace shell
89 } // namespace mojo 90 } // namespace mojo
90 91
91 #endif // SHELL_CONTEXT_H_ 92 #endif // SHELL_CONTEXT_H_
OLDNEW
« no previous file with comments | « shell/app_child_process.cc ('k') | shell/desktop/mojo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698