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

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

Issue 608333002: Standalone Mojo Javascript application (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Standalone Mojo application Created 6 years, 3 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
Index: mojo/apps/js/content_handler_impl.h
diff --git a/mojo/apps/js/content_handler_impl.h b/mojo/apps/js/content_handler_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..15368c98d0a60027c6c2c476f5d84eeb14879f6a
--- /dev/null
+++ b/mojo/apps/js/content_handler_impl.h
@@ -0,0 +1,34 @@
+// 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_CONTENT_HANDLER_IMPL_H_
+#define MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_
+
+#include "mojo/services/public/interfaces/content_handler/content_handler.mojom.h"
+
+namespace mojo {
+namespace apps {
+
+class ApplicationDelegateImpl;
+
+// Starts a new JSApp for each OnConnect call().
+
Aaron Boodman 2014/10/01 04:25:44 Delete empty line
hansmuller 2014/10/01 15:40:12 Done.
+class ContentHandlerImpl : public InterfaceImpl<ContentHandler> {
+ public:
+ ContentHandlerImpl(ApplicationDelegateImpl* app_delegate_impl);
+ virtual ~ContentHandlerImpl();
Aaron Boodman 2014/10/01 04:25:44 Does this need to be public?
hansmuller 2014/10/01 15:40:12 I've made it private for now. When we manage the c
+
+ private:
+ virtual void OnConnect(
+ const mojo::String& url,
+ URLResponsePtr content,
+ InterfaceRequest<ServiceProvider> service_provider) override;
+
+ ApplicationDelegateImpl* app_delegate_impl_;
+};
+
+} // namespace apps
+} // namespace mojo
+
+#endif // MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698