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

Unified Diff: mojo/shell/app_container.h

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow Android to be built Created 7 years 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/android/mojo_main.cc ('k') | mojo/shell/app_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/app_container.h
diff --git a/mojo/shell/app_container.h b/mojo/shell/app_container.h
deleted file mode 100644
index 8bba431fa7b31c530cc1272c6748138bff321bf9..0000000000000000000000000000000000000000
--- a/mojo/shell/app_container.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2013 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_APP_CONTAINER_H_
-#define MOJO_SHELL_APP_CONTAINER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "base/threading/simple_thread.h"
-#include "mojo/public/system/core_cpp.h"
-#include "mojo/shell/loader.h"
-
-namespace base {
-class FilePath;
-class PlatformThreadHandle;
-}
-
-namespace mojo {
-namespace services {
-class NativeViewportImpl;
-}
-namespace shell {
-
-class Context;
-
-// A container class that runs an app on its own thread.
-class AppContainer
- : public Loader::Delegate,
- public base::DelegateSimpleThread::Delegate {
- public:
- explicit AppContainer(Context* context);
- virtual ~AppContainer();
-
- void Load(const GURL& app_url);
-
- private:
- // From Loader::Delegate.
- virtual void DidCompleteLoad(const GURL& app_url,
- const base::FilePath& app_path) OVERRIDE;
-
- // From base::DelegateSimpleThread::Delegate.
- virtual void Run() OVERRIDE;
-
- void AppCompleted();
-
- Context* context_;
- base::FilePath app_path_;
- ScopedMessagePipeHandle shell_handle_;
- ScopedMessagePipeHandle app_handle_;
- base::Closure ack_closure_;
- scoped_ptr<Loader::Job> request_;
- scoped_ptr<base::DelegateSimpleThread> thread_;
- scoped_ptr<services::NativeViewportImpl> native_viewport_;
-
- base::WeakPtrFactory<AppContainer> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(AppContainer);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_APP_CONTAINER_H_
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/app_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698