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

Unified Diff: mojo/shell/context.h

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/child_process_host_unittest.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.h
diff --git a/mojo/shell/context.h b/mojo/shell/context.h
deleted file mode 100644
index 7f980d4457b6bde96e214837d485a3b1f2e7b195..0000000000000000000000000000000000000000
--- a/mojo/shell/context.h
+++ /dev/null
@@ -1,74 +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_CONTEXT_H_
-#define MOJO_SHELL_CONTEXT_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "mojo/application_manager/application_manager.h"
-#include "mojo/shell/mojo_url_resolver.h"
-#include "mojo/shell/task_runners.h"
-
-#if defined(OS_ANDROID)
-#include "base/android/scoped_java_ref.h"
-#endif // defined(OS_ANDROID)
-
-namespace mojo {
-
-class Spy;
-
-namespace shell {
-
-class DynamicApplicationLoader;
-class ExternalApplicationListener;
-
-// The "global" context for the shell's main process.
-class Context : ApplicationManager::Delegate {
- public:
- Context();
- ~Context() override;
-
- static void EnsureEmbedderIsInitialized();
- bool Init();
-
- void Run(const GURL& url);
- ScopedMessagePipeHandle ConnectToServiceByName(
- const GURL& application_url,
- const std::string& service_name);
-
- TaskRunners* task_runners() { return task_runners_.get(); }
- ApplicationManager* application_manager() { return &application_manager_; }
- MojoURLResolver* mojo_url_resolver() { return &mojo_url_resolver_; }
-
-#if defined(OS_ANDROID)
- base::MessageLoop* ui_loop() const { return ui_loop_; }
- void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; }
-#endif // defined(OS_ANDROID)
-
- private:
- class NativeViewportApplicationLoader;
-
- // ApplicationManager::Delegate override.
- void OnApplicationError(const GURL& url) override;
- GURL ResolveURL(const GURL& url) override;
-
- std::set<GURL> app_urls_;
- scoped_ptr<TaskRunners> task_runners_;
- scoped_ptr<ExternalApplicationListener> listener_;
- ApplicationManager application_manager_;
- MojoURLResolver mojo_url_resolver_;
- scoped_ptr<Spy> spy_;
-#if defined(OS_ANDROID)
- base::MessageLoop* ui_loop_;
-#endif // defined(OS_ANDROID)
-
- DISALLOW_COPY_AND_ASSIGN(Context);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_CONTEXT_H_
« no previous file with comments | « mojo/shell/child_process_host_unittest.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698