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

Unified Diff: sky/services/ns_net/network_service_impl.mm

Issue 1165283002: Basic network service implementation for iOS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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: sky/services/ns_net/network_service_impl.mm
diff --git a/sky/services/ns_net/network_service_impl.mm b/sky/services/ns_net/network_service_impl.mm
new file mode 100644
index 0000000000000000000000000000000000000000..d8204f9aaa698de18f0efed9a0b53ad5042658b3
--- /dev/null
+++ b/sky/services/ns_net/network_service_impl.mm
@@ -0,0 +1,60 @@
+// Copyright 2015 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 "network_service_impl.h"
+#include "url_loader_impl.h"
+#include "base/logging.h"
+#include <Foundation/Foundation.h>
+
+namespace mojo {
+
+void NetworkServiceImpl::CreateURLLoader(
+ mojo::InterfaceRequest<mojo::URLLoader> loader) {
eseidel 2015/06/08 20:53:53 Same problem here. No need for mojo:: inside name
+ new URLLoaderImpl(loader.Pass());
+}
+
+void NetworkServiceImpl::GetCookieStore(
+ mojo::InterfaceRequest<mojo::CookieStore> cookie_store) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateWebSocket(
+ mojo::InterfaceRequest<mojo::WebSocket> socket) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateTCPBoundSocket(
+ mojo::NetAddressPtr local_address,
+ mojo::InterfaceRequest<mojo::TCPBoundSocket> bound_socket,
+ const CreateTCPBoundSocketCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateTCPConnectedSocket(
+ mojo::NetAddressPtr remote_address,
+ mojo::ScopedDataPipeConsumerHandle send_stream,
+ mojo::ScopedDataPipeProducerHandle receive_stream,
+ mojo::InterfaceRequest<mojo::TCPConnectedSocket> client_socket,
+ const CreateTCPConnectedSocketCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateUDPSocket(
+ mojo::InterfaceRequest<mojo::UDPSocket> socket) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateHttpServer(
+ mojo::NetAddressPtr local_address,
+ mojo::HttpServerDelegatePtr delegate,
+ const CreateHttpServerCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceFactory::Create(ApplicationConnection* connection,
+ InterfaceRequest<NetworkService> request) {
+ new NetworkServiceImpl(request.Pass());
+}
+
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698