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

Unified Diff: mojo/shell/ui_application_loader_android.h

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/test_child_process.cc ('k') | mojo/shell/ui_application_loader_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/ui_application_loader_android.h
diff --git a/mojo/shell/ui_application_loader_android.h b/mojo/shell/ui_application_loader_android.h
deleted file mode 100644
index 9b8841071e70b1987a65efca06a80e839bd4af01..0000000000000000000000000000000000000000
--- a/mojo/shell/ui_application_loader_android.h
+++ /dev/null
@@ -1,61 +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_SHELL_UI_APPLICATION_LOADER_ANDROID_H_
-#define MOJO_SHELL_UI_APPLICATION_LOADER_ANDROID_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/application_manager/application_loader.h"
-
-namespace mojo {
-
-class ApplicationManager;
-
-namespace shell {
-class Context;
-}
-
-// ApplicationLoader implementation that creates a background thread and issues
-// load
-// requests there.
-class UIApplicationLoader : public ApplicationLoader {
- public:
- UIApplicationLoader(scoped_ptr<ApplicationLoader> real_loader,
- shell::Context* context);
- ~UIApplicationLoader() override;
-
- // ApplicationLoader overrides:
- void Load(ApplicationManager* manager,
- const GURL& url,
- scoped_refptr<LoadCallbacks> callbacks) override;
- void OnApplicationError(ApplicationManager* manager,
- const GURL& url) 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(ApplicationManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle* shell_handle);
- void OnApplicationErrorOnUIThread(ApplicationManager* manager,
- const GURL& url);
- void ShutdownOnUIThread();
-
- scoped_ptr<ApplicationLoader> loader_;
- shell::Context* context_;
-
- // Lives on the UI thread. Trivial interface that calls through to |loader_|.
- UILoader* ui_loader_;
-
- DISALLOW_COPY_AND_ASSIGN(UIApplicationLoader);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SHELL_UI_APPLICATION_LOADER_ANDROID_H_
« no previous file with comments | « mojo/shell/test_child_process.cc ('k') | mojo/shell/ui_application_loader_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698