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

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

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/application_delegate_impl.h ('k') | mojo/apps/js/bindings/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/application_delegate_impl.cc
diff --git a/mojo/apps/js/application_delegate_impl.cc b/mojo/apps/js/application_delegate_impl.cc
deleted file mode 100644
index f197c3cc0eb82e2eaa357783c94b32dfb9ef6709..0000000000000000000000000000000000000000
--- a/mojo/apps/js/application_delegate_impl.cc
+++ /dev/null
@@ -1,56 +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.
-
-#include "mojo/apps/js/application_delegate_impl.h"
-
-#include "gin/array_buffer.h"
-#include "gin/public/isolate_holder.h"
-#include "mojo/apps/js/js_app.h"
-#include "mojo/public/cpp/application/application_impl.h"
-
-namespace mojo {
-namespace apps {
-
-ApplicationDelegateImpl::ApplicationDelegateImpl()
- : application_impl_(nullptr) {
-}
-
-void ApplicationDelegateImpl::Initialize(ApplicationImpl* app) {
- application_impl_ = app;
- gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode,
- gin::ArrayBufferAllocator::SharedInstance());
-}
-
-ApplicationDelegateImpl::~ApplicationDelegateImpl() {
-}
-
-void ApplicationDelegateImpl::StartJSApp(scoped_ptr<JSApp> app_ptr) {
- JSApp *app = app_ptr.release();
- app_vector_.push_back(app);
- // TODO(hansmuller): deal with the Start() return value.
- app->Start();
-}
-
-void ApplicationDelegateImpl::QuitJSApp(JSApp* app) {
- AppVector::iterator itr =
- std::find(app_vector_.begin(), app_vector_.end(), app);
- if (itr != app_vector_.end())
- app_vector_.erase(itr);
- if (app_vector_.empty())
- base::MessageLoop::current()->QuitNow();
-}
-
-void ApplicationDelegateImpl::ConnectToService(
- ScopedMessagePipeHandle pipe_handle,
- const std::string& application_url,
- const std::string& interface_name) {
- CHECK(application_impl_);
- ServiceProvider* service_provider =
- application_impl_->ConnectToApplication(application_url)
- ->GetServiceProvider();
- service_provider->ConnectToService(interface_name, pipe_handle.Pass());
-}
-
-} // namespace apps
-} // namespace mojo
« no previous file with comments | « mojo/apps/js/application_delegate_impl.h ('k') | mojo/apps/js/bindings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698