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

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: Address feedback on 1165283002 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..903b345dff78ff3b83fb588242b12dadbd6a1056
--- /dev/null
+++ b/sky/services/ns_net/network_service_impl.mm
@@ -0,0 +1,65 @@
+// 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(
+ InterfaceRequest<URLLoader> loader) {
+ new URLLoaderImpl(loader.Pass());
+}
+
+void NetworkServiceImpl::GetCookieStore(
+ InterfaceRequest<CookieStore> cookie_store) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateWebSocket(
+ InterfaceRequest<WebSocket> socket) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateTCPBoundSocket(
+ NetAddressPtr local_address,
+ InterfaceRequest<TCPBoundSocket> bound_socket,
+ const CreateTCPBoundSocketCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateTCPConnectedSocket(
+ NetAddressPtr remote_address,
+ ScopedDataPipeConsumerHandle send_stream,
+ ScopedDataPipeProducerHandle receive_stream,
+ InterfaceRequest<TCPConnectedSocket> client_socket,
+ const CreateTCPConnectedSocketCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateUDPSocket(
+ InterfaceRequest<UDPSocket> socket) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::CreateHttpServer(
+ NetAddressPtr local_address,
+ HttpServerDelegatePtr delegate,
+ const CreateHttpServerCallback& callback) {
+ DCHECK(false);
+}
+
+void NetworkServiceImpl::RegisterURLLoaderInterceptor(
+ URLLoaderInterceptorFactoryPtr factory) {
+ 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