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

Unified Diff: mojo/runner/android/ui_application_loader_android.h

Issue 1630823002: Move mojo/runner to mojo/shell/standalone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: mojo/runner/android/ui_application_loader_android.h
diff --git a/mojo/runner/android/ui_application_loader_android.h b/mojo/runner/android/ui_application_loader_android.h
deleted file mode 100644
index be2be155c2dab5d79565a167e9d4ad933cd3958b..0000000000000000000000000000000000000000
--- a/mojo/runner/android/ui_application_loader_android.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_RUNNER_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_
-#define MOJO_RUNNER_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/shell/application_loader.h"
-
-namespace base {
-class MessageLoop;
-}
-
-namespace mojo {
-namespace runner {
-
-class ApplicationManager;
-
-// ApplicationLoader implementation that creates a background thread and issues
-// load
-// requests there.
-class UIApplicationLoader : public shell::ApplicationLoader {
- public:
- UIApplicationLoader(scoped_ptr<ApplicationLoader> real_loader,
- base::MessageLoop* ui_message_loop);
- ~UIApplicationLoader() override;
-
- // ApplicationLoader overrides:
- void Load(const GURL& url,
- InterfaceRequest<Application> application_request) override;
-
- private:
- class UILoader;
-
- // These functions are exected on the background thread. They call through
- // to |background_loader_| to do the actual loading.
- // TODO: having this code take a |manager| is fragile (as ApplicationManager
- // isn't thread safe).
- void LoadOnUIThread(const GURL& url,
- InterfaceRequest<Application> application_request);
- void ShutdownOnUIThread();
-
- scoped_ptr<ApplicationLoader> loader_;
- base::MessageLoop* ui_message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(UIApplicationLoader);
-};
-
-} // namespace runner
-} // namespace mojo
-
-#endif // MOJO_RUNNER_ANDROID_UI_APPLICATION_LOADER_ANDROID_H_
« no previous file with comments | « mojo/runner/android/run_android_application_function.h ('k') | mojo/runner/android/ui_application_loader_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698