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

Unified Diff: mojo/runner/context.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
« no previous file with comments | « mojo/runner/android/ui_application_loader_android.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.h
diff --git a/mojo/runner/context.h b/mojo/runner/context.h
deleted file mode 100644
index 2db71887c34f34ae4fd1bd6c7f5b5a65b14075f7..0000000000000000000000000000000000000000
--- a/mojo/runner/context.h
+++ /dev/null
@@ -1,89 +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_RUNNER_CONTEXT_H_
-#define MOJO_RUNNER_CONTEXT_H_
-
-#include <set>
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "mojo/runner/scoped_user_data_dir.h"
-#include "mojo/runner/task_runners.h"
-#include "mojo/runner/tracer.h"
-#include "mojo/shell/application_manager.h"
-#include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h"
-#include "url/gurl.h"
-
-namespace mojo {
-namespace shell {
-class PackageManagerImpl;
-}
-namespace runner {
-
-class NativeApplicationLoader;
-
-// The "global" context for the shell's main process.
-// TODO(use_chrome_edk)
-//class Context : public edk::ProcessDelegate {
-class Context : public embedder::ProcessDelegate {
- public:
- Context();
- ~Context() override;
-
- static void EnsureEmbedderIsInitialized();
-
- // This must be called with a message loop set up for the current thread,
- // which must remain alive until after Shutdown() is called. Returns true on
- // success.
- bool Init(const base::FilePath& shell_file_root);
-
- // If Init() was called and succeeded, this must be called before destruction.
- void Shutdown();
-
- // NOTE: call either Run() or RunCommandLineApplication(), but not both.
-
- // Runs the app specified by |url|.
- void Run(const GURL& url);
-
- // Run the application specified on the commandline. When the app finishes,
- // |callback| is run if not null, otherwise the message loop is quit.
- void RunCommandLineApplication(const base::Closure& callback);
-
- TaskRunners* task_runners() { return task_runners_.get(); }
- shell::ApplicationManager* application_manager() {
- return application_manager_.get();
- }
-
- shell::PackageManagerImpl* package_manager() { return package_manager_; }
-
- private:
- class NativeViewportApplicationLoader;
-
- // ProcessDelegate implementation.
- void OnShutdownComplete() override;
-
- void OnApplicationEnd(const GURL& url);
-
- ScopedUserDataDir scoped_user_data_dir;
- std::set<GURL> app_urls_;
- scoped_ptr<TaskRunners> task_runners_;
- // Ensure this is destructed before task_runners_ since it owns a message pipe
- // that needs the IO thread to destruct cleanly.
- Tracer tracer_;
- // Owned by |application_manager_|.
- shell::PackageManagerImpl* package_manager_;
- scoped_ptr<shell::ApplicationManager> application_manager_;
- base::Closure app_complete_callback_;
- base::Time main_entry_time_;
-
- DISALLOW_COPY_AND_ASSIGN(Context);
-};
-
-} // namespace runner
-} // namespace mojo
-
-#endif // MOJO_RUNNER_CONTEXT_H_
« no previous file with comments | « mojo/runner/android/ui_application_loader_android.cc ('k') | mojo/runner/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698