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

Unified Diff: mojo/apps/js/js_app.h

Issue 703023004: Move the JS content handler et al from mojo/apps/js to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed DEPS gl build Created 6 years, 1 month 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/apps/js/content_handler_main.cc ('k') | mojo/apps/js/js_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/js_app.h
diff --git a/mojo/apps/js/js_app.h b/mojo/apps/js/js_app.h
deleted file mode 100644
index d284b0df55f4d13b74430e803dd7fdcf3673f7f5..0000000000000000000000000000000000000000
--- a/mojo/apps/js/js_app.h
+++ /dev/null
@@ -1,66 +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.
-
-#ifndef MOJO_APPS_JS_JS_APP_H_
-#define MOJO_APPS_JS_JS_APP_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/threading/thread.h"
-#include "gin/public/isolate_holder.h"
-#include "gin/shell_runner.h"
-#include "mojo/application/content_handler_factory.h"
-#include "mojo/edk/js/mojo_runner_delegate.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/interfaces/application/application.mojom.h"
-#include "mojo/public/interfaces/application/shell.mojom.h"
-#include "mojo/services/public/interfaces/network/url_loader.mojom.h"
-
-namespace mojo {
-namespace apps {
-
-class JSApp;
-class ApplicationDelegateImpl;
-
-// Each JavaScript app started by content handler runs on its own thread and
-// in its own V8 isolate. This class represents one running JS app.
-
-class JSApp : public InterfaceImpl<Application>,
- public ContentHandlerFactory::HandledApplicationHolder {
- public:
- JSApp(ShellPtr shell, URLResponsePtr response);
- virtual ~JSApp();
-
- // Called by the JS mojo module to quit this JS app. See mojo.js.
- void Quit();
-
- // Called by the JS mojo module to connect to a Mojo application.
- MessagePipeHandle ConnectToApplication(const std::string& application_url);
-
- // Called by the JS mojo module to retrieve the ServiceProvider message
- // pipe handle passed to the JS application's AcceptConnection() method.
- MessagePipeHandle RequestorMessagePipeHandle();
-
- private:
- // Application methods:
- void AcceptConnection(const String& requestor_url,
- ServiceProviderPtr provider) override;
- void Initialize(Array<String> args) override;
-
- void QuitInternal();
-
- ShellPtr shell_;
- js::MojoRunnerDelegate runner_delegate;
- gin::IsolateHolder isolate_holder_;
- scoped_ptr<gin::ShellRunner> shell_runner_;
- std::string source_;
- std::string file_name_;
- ScopedMessagePipeHandle requestor_handle_;
-
- DISALLOW_COPY_AND_ASSIGN(JSApp);
-};
-
-} // namespace apps
-} // namespace mojo
-
-#endif // MOJO_APPS_JS_JS_APP_H_
« no previous file with comments | « mojo/apps/js/content_handler_main.cc ('k') | mojo/apps/js/js_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698