OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ | 5 #ifndef SHELL_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ |
6 #define SHELL_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ | 6 #define SHELL_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "shell/application_manager/application_loader.h" | 10 #include "shell/application_manager/application_loader.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class MessageLoop; | 13 class MessageLoop; |
14 } | 14 } |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
| 17 namespace shell { |
17 | 18 |
18 class ApplicationManager; | 19 class ApplicationManager; |
19 | 20 |
20 // ApplicationLoader implementation that creates a background thread and issues | 21 // ApplicationLoader implementation that creates a background thread and issues |
21 // load | 22 // load |
22 // requests there. | 23 // requests there. |
23 class UIApplicationLoader : public ApplicationLoader { | 24 class UIApplicationLoader : public ApplicationLoader { |
24 public: | 25 public: |
25 UIApplicationLoader(scoped_ptr<ApplicationLoader> real_loader, | 26 UIApplicationLoader(scoped_ptr<ApplicationLoader> real_loader, |
26 base::MessageLoop* ui_message_loop); | 27 base::MessageLoop* ui_message_loop); |
(...skipping 13 matching lines...) Expand all Loading... |
40 void LoadOnUIThread(const GURL& url, | 41 void LoadOnUIThread(const GURL& url, |
41 InterfaceRequest<Application> application_request); | 42 InterfaceRequest<Application> application_request); |
42 void ShutdownOnUIThread(); | 43 void ShutdownOnUIThread(); |
43 | 44 |
44 scoped_ptr<ApplicationLoader> loader_; | 45 scoped_ptr<ApplicationLoader> loader_; |
45 base::MessageLoop* ui_message_loop_; | 46 base::MessageLoop* ui_message_loop_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(UIApplicationLoader); | 48 DISALLOW_COPY_AND_ASSIGN(UIApplicationLoader); |
48 }; | 49 }; |
49 | 50 |
| 51 } // namespace shell |
50 } // namespace mojo | 52 } // namespace mojo |
51 | 53 |
52 #endif // SHELL_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ | 54 #endif // SHELL_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_ |
OLD | NEW |