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

Side by Side Diff: mojo/shell/context.h

Issue 522443003: Accept inbound connections on unix domain socket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug407782
Patch Set: Deleted extra curly brace, which was closing a namespace too early Created 6 years, 2 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 | « mojo/shell/BUILD.gn ('k') | mojo/shell/context.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 MOJO_SHELL_CONTEXT_H_ 5 #ifndef MOJO_SHELL_CONTEXT_H_
6 #define MOJO_SHELL_CONTEXT_H_ 6 #define MOJO_SHELL_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/application_manager/application_manager.h" 10 #include "mojo/application_manager/application_manager.h"
11 #include "mojo/shell/mojo_url_resolver.h" 11 #include "mojo/shell/mojo_url_resolver.h"
12 #include "mojo/shell/task_runners.h" 12 #include "mojo/shell/task_runners.h"
13 13
14 #if defined(OS_ANDROID) 14 #if defined(OS_ANDROID)
15 #include "base/android/scoped_java_ref.h" 15 #include "base/android/scoped_java_ref.h"
16 #endif // defined(OS_ANDROID) 16 #endif // defined(OS_ANDROID)
17 17
18 namespace mojo { 18 namespace mojo {
19 19
20 class Spy; 20 class Spy;
21 21
22 namespace shell { 22 namespace shell {
23 23
24 class DynamicApplicationLoader; 24 class DynamicApplicationLoader;
25 class ExternalApplicationListener;
25 26
26 // The "global" context for the shell's main process. 27 // The "global" context for the shell's main process.
27 class Context : ApplicationManager::Delegate { 28 class Context : ApplicationManager::Delegate {
28 public: 29 public:
29 Context(); 30 Context();
30 virtual ~Context(); 31 virtual ~Context();
31 32
32 void Init(); 33 void Init();
33 34
34 // ApplicationManager::Delegate override. 35 // ApplicationManager::Delegate override.
(...skipping 11 matching lines...) Expand all
46 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
47 base::MessageLoop* ui_loop() const { return ui_loop_; } 48 base::MessageLoop* ui_loop() const { return ui_loop_; }
48 void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; } 49 void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; }
49 #endif // defined(OS_ANDROID) 50 #endif // defined(OS_ANDROID)
50 51
51 private: 52 private:
52 class NativeViewportApplicationLoader; 53 class NativeViewportApplicationLoader;
53 54
54 std::set<GURL> app_urls_; 55 std::set<GURL> app_urls_;
55 scoped_ptr<TaskRunners> task_runners_; 56 scoped_ptr<TaskRunners> task_runners_;
57 scoped_ptr<ExternalApplicationListener> listener_;
56 ApplicationManager application_manager_; 58 ApplicationManager application_manager_;
57 MojoURLResolver mojo_url_resolver_; 59 MojoURLResolver mojo_url_resolver_;
58 scoped_ptr<Spy> spy_; 60 scoped_ptr<Spy> spy_;
59 #if defined(OS_ANDROID) 61 #if defined(OS_ANDROID)
60 base::MessageLoop* ui_loop_; 62 base::MessageLoop* ui_loop_;
61 #endif // defined(OS_ANDROID) 63 #endif // defined(OS_ANDROID)
62 64
63 DISALLOW_COPY_AND_ASSIGN(Context); 65 DISALLOW_COPY_AND_ASSIGN(Context);
64 }; 66 };
65 67
66 } // namespace shell 68 } // namespace shell
67 } // namespace mojo 69 } // namespace mojo
68 70
69 #endif // MOJO_SHELL_CONTEXT_H_ 71 #endif // MOJO_SHELL_CONTEXT_H_
OLDNEW
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698