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

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

Issue 164313002: Rename ServiceConnector back to ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bad upload Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('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 "mojo/shell/keep_alive.h" 8 #include "mojo/shell/keep_alive.h"
9 #include "mojo/shell/loader.h" 9 #include "mojo/shell/loader.h"
10 #include "mojo/shell/service_connector.h" 10 #include "mojo/shell/service_manager.h"
11 #include "mojo/shell/storage.h" 11 #include "mojo/shell/storage.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 namespace shell { 19 namespace shell {
20 20
21 class DynamicServiceLoader; 21 class DynamicServiceLoader;
22 22
23 class Context { 23 class Context {
24 public: 24 public:
25 Context(); 25 Context();
26 ~Context(); 26 ~Context();
27 27
28 TaskRunners* task_runners() { return &task_runners_; } 28 TaskRunners* task_runners() { return &task_runners_; }
29 Storage* storage() { return &storage_; } 29 Storage* storage() { return &storage_; }
30 Loader* loader() { return &loader_; } 30 Loader* loader() { return &loader_; }
31 ServiceConnector* service_connector() { return &service_connector_; } 31 ServiceManager* service_manager() { return &service_manager_; }
32 KeepAliveCounter* keep_alive_counter() { return &keep_alive_counter_; } 32 KeepAliveCounter* keep_alive_counter() { return &keep_alive_counter_; }
33 33
34 #if defined(OS_ANDROID) 34 #if defined(OS_ANDROID)
35 jobject activity() const { return activity_.obj(); } 35 jobject activity() const { return activity_.obj(); }
36 void set_activity(jobject activity) { activity_.Reset(NULL, activity); } 36 void set_activity(jobject activity) { activity_.Reset(NULL, activity); }
37 #endif // defined(OS_ANDROID) 37 #endif // defined(OS_ANDROID)
38 38
39 private: 39 private:
40 TaskRunners task_runners_; 40 TaskRunners task_runners_;
41 Storage storage_; 41 Storage storage_;
42 Loader loader_; 42 Loader loader_;
43 ServiceConnector service_connector_; 43 ServiceManager service_manager_;
44 scoped_ptr<DynamicServiceLoader> dynamic_service_loader_; 44 scoped_ptr<DynamicServiceLoader> dynamic_service_loader_;
45 45
46 #if defined(OS_ANDROID) 46 #if defined(OS_ANDROID)
47 base::android::ScopedJavaGlobalRef<jobject> activity_; 47 base::android::ScopedJavaGlobalRef<jobject> activity_;
48 #endif // defined(OS_ANDROID) 48 #endif // defined(OS_ANDROID)
49 49
50 KeepAliveCounter keep_alive_counter_; 50 KeepAliveCounter keep_alive_counter_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(Context); 52 DISALLOW_COPY_AND_ASSIGN(Context);
53 }; 53 };
54 54
55 } // namespace shell 55 } // namespace shell
56 } // namespace mojo 56 } // namespace mojo
57 57
58 #endif // MOJO_SHELL_CONTEXT_H_ 58 #endif // MOJO_SHELL_CONTEXT_H_
OLDNEW
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698