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

Unified Diff: sky/services/inspector/inspector_frontend_impl.h

Issue 710043004: Make it possible to have multiple InspectorBackends (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Move InspectorFrontendImpl into server.cc and rename ServerImpl to InspectorServerImpl 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 | « sky/services/inspector/inspector.mojom ('k') | sky/services/inspector/inspector_frontend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/inspector/inspector_frontend_impl.h
diff --git a/sky/services/inspector/inspector_frontend_impl.h b/sky/services/inspector/inspector_frontend_impl.h
deleted file mode 100644
index 6521760351bcdf3178de391a1ceb3b18037ceb63..0000000000000000000000000000000000000000
--- a/sky/services/inspector/inspector_frontend_impl.h
+++ /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.
-
-#ifndef SKY_SERVICES_INSPECTOR_INSPECTOR_FRONTEND_IMPL_H_
-#define SKY_SERVICES_INSPECTOR_INSPECTOR_FRONTEND_IMPL_H_
-
-#include "mojo/public/cpp/application/interface_factory_impl.h"
-#include "mojo/public/cpp/bindings/interface_impl.h"
-#include "net/server/http_server.h"
-#include "net/socket/tcp_server_socket.h"
-#include "sky/services/inspector/inspector.mojom.h"
-
-namespace sky {
-namespace inspector {
-
-class InspectorFrontendImpl : public mojo::InterfaceImpl<InspectorFrontend>,
- public net::HttpServer::Delegate {
- public:
- InspectorFrontendImpl();
- virtual ~InspectorFrontendImpl();
-
- private:
- // From net::HttpServer::Delegate
- virtual void OnConnect(int connection_id) override;
- virtual void OnHttpRequest(
- int connection_id, const net::HttpServerRequestInfo& info) override;
- virtual void OnWebSocketRequest(
- int connection_id, const net::HttpServerRequestInfo& info) override;
- virtual void OnWebSocketMessage(
- int connection_id, const std::string& data) override;
- virtual void OnClose(int connection_id) override;
-
- // From InspectorFrontend
- virtual void Listen(int32_t port) override;
- virtual void SendMessage(const mojo::String&) override;
-
- void StopListening();
-
- void Register(int port);
- void Unregister();
-
- int port_;
- int connection_id_;
- scoped_ptr<net::HttpServer> web_server_;
-
- MOJO_DISALLOW_COPY_AND_ASSIGN(InspectorFrontendImpl);
-};
-
-typedef mojo::InterfaceFactoryImpl<
- InspectorFrontendImpl> InspectorFrontendFactory;
-
-} // namespace tester
-} // namespace sky
-
-#endif // SKY_SERVICES_INSPECTOR_INSPECTOR_FRONTEND_IMPL_H_
« no previous file with comments | « sky/services/inspector/inspector.mojom ('k') | sky/services/inspector/inspector_frontend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698