| Index: mojo/shell/ui_application_loader_android.cc
|
| diff --git a/mojo/shell/ui_application_loader_android.cc b/mojo/shell/ui_application_loader_android.cc
|
| deleted file mode 100644
|
| index b8717071323f8a3786b178ff023bb87215b9d081..0000000000000000000000000000000000000000
|
| --- a/mojo/shell/ui_application_loader_android.cc
|
| +++ /dev/null
|
| @@ -1,64 +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.
|
| -
|
| -#include "mojo/shell/ui_application_loader_android.h"
|
| -
|
| -#include "base/bind.h"
|
| -#include "mojo/application_manager/application_manager.h"
|
| -#include "mojo/shell/context.h"
|
| -
|
| -namespace mojo {
|
| -
|
| -UIApplicationLoader::UIApplicationLoader(
|
| - scoped_ptr<ApplicationLoader> real_loader,
|
| - shell::Context* context)
|
| - : loader_(real_loader.Pass()), context_(context) {
|
| -}
|
| -
|
| -UIApplicationLoader::~UIApplicationLoader() {
|
| - context_->ui_loop()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&UIApplicationLoader::ShutdownOnUIThread,
|
| - base::Unretained(this)));
|
| -}
|
| -
|
| -void UIApplicationLoader::Load(ApplicationManager* manager,
|
| - const GURL& url,
|
| - ScopedMessagePipeHandle shell_handle,
|
| - LoadCallback callback) {
|
| - DCHECK(shell_handle.is_valid());
|
| - context_->ui_loop()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&UIApplicationLoader::LoadOnUIThread, base::Unretained(this),
|
| - manager, url, base::Passed(&shell_handle)));
|
| -}
|
| -
|
| -void UIApplicationLoader::OnApplicationError(ApplicationManager* manager,
|
| - const GURL& url) {
|
| - context_->ui_loop()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(&UIApplicationLoader::OnApplicationErrorOnUIThread,
|
| - base::Unretained(this),
|
| - manager,
|
| - url));
|
| -}
|
| -
|
| -void UIApplicationLoader::LoadOnUIThread(ApplicationManager* manager,
|
| - const GURL& url,
|
| - ScopedMessagePipeHandle shell_handle) {
|
| - loader_->Load(manager, url, shell_handle.Pass(), SimpleLoadCallback());
|
| -}
|
| -
|
| -void UIApplicationLoader::OnApplicationErrorOnUIThread(
|
| - ApplicationManager* manager,
|
| - const GURL& url) {
|
| - loader_->OnApplicationError(manager, url);
|
| -}
|
| -
|
| -void UIApplicationLoader::ShutdownOnUIThread() {
|
| - // Destroy |loader_| on the thread it's actually used on.
|
| - loader_.reset();
|
| -}
|
| -
|
| -} // namespace mojo
|
|
|