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

Unified Diff: sky/viewer/services/inspector_impl.cc

Issue 931873002: Delete sky/services/inspector/server.cc. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Drop the InspectorServer interface and inspector_impl. Created 5 years, 10 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 | « sky/viewer/services/inspector_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/services/inspector_impl.cc
diff --git a/sky/viewer/services/inspector_impl.cc b/sky/viewer/services/inspector_impl.cc
deleted file mode 100644
index d85c3e37df1b6fb36abeb0fad52497c0c99d8c0b..0000000000000000000000000000000000000000
--- a/sky/viewer/services/inspector_impl.cc
+++ /dev/null
@@ -1,44 +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 "sky/viewer/services/inspector_impl.h"
-
-#include "base/bind.h"
-#include "sky/engine/public/web/WebDocument.h"
-#include "sky/engine/public/web/WebElement.h"
-#include "sky/engine/public/web/WebFrame.h"
-#include "sky/engine/public/web/WebView.h"
-#include "sky/services/inspector/inspector.mojom.h"
-#include "sky/viewer/document_view.h"
-
-namespace sky {
-
-InspectorServiceImpl::InspectorServiceImpl(DocumentView* view)
- : view_(view->GetWeakPtr()) {
-}
-
-InspectorServiceImpl::~InspectorServiceImpl() {
-}
-
-void Ignored() {}
-
-void InspectorServiceImpl::Inject() {
- if (!view_)
- return;
-
- mojo::ServiceProviderPtr inspector_service_provider;
- view_->shell()->ConnectToApplication("mojo:sky_inspector_server",
- GetProxy(&inspector_service_provider),
- nullptr);
- InspectorServerPtr inspector;
- mojo::ConnectToService(inspector_service_provider.get(), &inspector);
- inspector->Listen(9898, base::Bind(&Ignored));
- // Listen drops existing agents/backends, wait before registering new ones.
- inspector.WaitForIncomingMethodCall();
-
- view_->web_view()->injectModule("/sky/framework/inspector/inspector.sky");
- view_->StartDebuggerInspectorBackend();
-}
-
-} // namespace sky
« no previous file with comments | « sky/viewer/services/inspector_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698