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

Side by Side Diff: mojo/services/network/network_service_delegate.cc

Issue 1227373002: Roll mojo SDK to 734c6e1652ff2f3b696e441722838f453f4f9b42 (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Fix build Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/services/network/network_service_delegate.h" 5 #include "mojo/services/network/network_service_delegate.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 22 matching lines...) Expand all
33 void NetworkServiceDelegate::Quit() { 33 void NetworkServiceDelegate::Quit() {
34 // Destroy the NetworkContext now as it requires MessageLoop::current() upon 34 // Destroy the NetworkContext now as it requires MessageLoop::current() upon
35 // destruction and it is the last moment we know for sure that it is 35 // destruction and it is the last moment we know for sure that it is
36 // running. 36 // running.
37 context_.reset(); 37 context_.reset();
38 } 38 }
39 39
40 void NetworkServiceDelegate::Create( 40 void NetworkServiceDelegate::Create(
41 mojo::ApplicationConnection* connection, 41 mojo::ApplicationConnection* connection,
42 mojo::InterfaceRequest<mojo::NetworkService> request) { 42 mojo::InterfaceRequest<mojo::NetworkService> request) {
43 mojo::BindToRequest(new mojo::NetworkServiceImpl(connection, context_.get()), 43 new mojo::NetworkServiceImpl(request.Pass(), connection, context_.get());
44 &request);
45 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698