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

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

Issue 646943006: Remove mojo/apps/js, it is unused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/apps/js/DEPS ('k') | mojo/apps/js/application_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/application_delegate_impl.h
diff --git a/mojo/apps/js/application_delegate_impl.h b/mojo/apps/js/application_delegate_impl.h
deleted file mode 100644
index 81a481cd356bc3a76be815561d7a17358c8693af..0000000000000000000000000000000000000000
--- a/mojo/apps/js/application_delegate_impl.h
+++ /dev/null
@@ -1,57 +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_CONTENT_HANDLER_H_
-#define MOJO_APPS_JS_CONTENT_HANDLER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/system/message_pipe.h"
-
-namespace mojo {
-
-class ApplcationImpl;
-
-namespace apps {
-
-class ApplicationDelegateImpl;
-class JSApp;
-
-// Manages the JSApps started by this content handler. This class owns the one
-// reference to the Mojo shell. JSApps post a task to the content handler's
-// thread to connect to a service or to quit.
-//
-// The lifetime each JSApp is defined by its entry in AppVector. When the entry
-// is removed ("erased") by QuitJSApp(), the JSApp is destroyed.
-
-class ApplicationDelegateImpl : public ApplicationDelegate {
- public:
- ApplicationDelegateImpl();
- ~ApplicationDelegateImpl() override;
-
- // Add app to the AppVector and call its Start() method.
- void StartJSApp(scoped_ptr<JSApp> app);
-
- // Remove app from the AppVector; destroys the app.
- void QuitJSApp(JSApp *app);
-
- void ConnectToService(ScopedMessagePipeHandle pipe_handle,
- const std::string& application_url,
- const std::string& interface_name);
-
- protected:
- // ApplicationDelegate:
- void Initialize(ApplicationImpl* app) override;
-
- private:
- typedef ScopedVector<JSApp> AppVector;
- ApplicationImpl* application_impl_;
- AppVector app_vector_;
-};
-
-} // namespace apps
-} // namespace mojo
-
-#endif // MOJO_APPS_JS_CONTENT_HANDLER_H_
« no previous file with comments | « mojo/apps/js/DEPS ('k') | mojo/apps/js/application_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698