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

Side by Side Diff: mojo/runner/android/background_application_loader.h

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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
OLDNEW
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_BACKGROUND_APPLICATION_LOADER_H_ 5 #ifndef MOJO_RUNNER_ANDROID_BACKGROUND_APPLICATION_LOADER_H_
6 #define SHELL_ANDROID_BACKGROUND_APPLICATION_LOADER_H_ 6 #define MOJO_RUNNER_ANDROID_BACKGROUND_APPLICATION_LOADER_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 "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/threading/simple_thread.h" 12 #include "base/threading/simple_thread.h"
13 #include "mojo/shell/application_manager/application_loader.h" 13 #include "mojo/shell/application_loader.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 namespace shell { 16 namespace shell {
17 17
18 class BackgroundApplicationLoader 18 class BackgroundApplicationLoader
19 : public ApplicationLoader, 19 : public ApplicationLoader,
20 public base::DelegateSimpleThread::Delegate { 20 public base::DelegateSimpleThread::Delegate {
21 public: 21 public:
22 BackgroundApplicationLoader(scoped_ptr<ApplicationLoader> real_loader, 22 BackgroundApplicationLoader(scoped_ptr<ApplicationLoader> real_loader,
23 const std::string& thread_name, 23 const std::string& thread_name,
(...skipping 30 matching lines...) Expand all
54 base::Closure quit_closure_; 54 base::Closure quit_closure_;
55 55
56 scoped_ptr<base::DelegateSimpleThread> thread_; 56 scoped_ptr<base::DelegateSimpleThread> thread_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationLoader); 58 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationLoader);
59 }; 59 };
60 60
61 } // namespace shell 61 } // namespace shell
62 } // namespace mojo 62 } // namespace mojo
63 63
64 #endif // SHELL_ANDROID_BACKGROUND_APPLICATION_LOADER_H_ 64 #endif // MOJO_RUNNER_ANDROID_BACKGROUND_APPLICATION_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698