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

Unified Diff: mojo/shell/standalone/context.h

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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/standalone/DEPS ('k') | mojo/shell/standalone/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/standalone/context.h
diff --git a/mojo/shell/standalone/context.h b/mojo/shell/standalone/context.h
deleted file mode 100644
index fee1e5ab27485c978d81f1a3bc18325630467dc6..0000000000000000000000000000000000000000
--- a/mojo/shell/standalone/context.h
+++ /dev/null
@@ -1,86 +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_STANDALONE_CONTEXT_H_
-#define MOJO_SHELL_STANDALONE_CONTEXT_H_
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/thread.h"
-#include "base/time/time.h"
-#include "mojo/edk/embedder/process_delegate.h"
-#include "mojo/shell/shell.h"
-#include "mojo/shell/standalone/tracer.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace catalog {
-class Factory;
-class Store;
-}
-
-namespace mojo {
-namespace shell {
-class NativeRunnerDelegate;
-
-// The "global" context for the shell's main process.
-class Context : public edk::ProcessDelegate {
- public:
- struct InitParams {
- InitParams();
- ~InitParams();
-
- NativeRunnerDelegate* native_runner_delegate = nullptr;
- scoped_ptr<catalog::Store> catalog_store;
- // If true the edk is initialized.
- bool init_edk = true;
- };
-
- 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.
- void Init(scoped_ptr<InitParams> init_params);
-
- // If Init() was called and succeeded, this must be called before destruction.
- void Shutdown();
-
- // Run the application specified on the command line.
- void RunCommandLineApplication();
-
- Shell* shell() { return shell_.get(); }
-
- private:
- // edk::ProcessDelegate:
- void OnShutdownComplete() override;
-
- // Runs the app specified by |name|.
- void Run(const std::string& name);
-
- scoped_refptr<base::SingleThreadTaskRunner> shell_runner_;
- scoped_ptr<base::Thread> io_thread_;
- scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
-
- // Ensure this is destructed before task_runners_ since it owns a message pipe
- // that needs the IO thread to destruct cleanly.
- Tracer tracer_;
- scoped_ptr<catalog::Factory> catalog_;
- scoped_ptr<Shell> shell_;
- base::Time main_entry_time_;
- bool init_edk_ = false;
-
- DISALLOW_COPY_AND_ASSIGN(Context);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_STANDALONE_CONTEXT_H_
« no previous file with comments | « mojo/shell/standalone/DEPS ('k') | mojo/shell/standalone/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698