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

Side by Side Diff: services/dart/content_handler_app_service_connector.cc

Issue 1404443004: Move //mojo/services/network/public/interfaces to //mojo/services/network/interfaces. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add some missing dependencies Created 5 years, 2 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
« no previous file with comments | « services/dart/BUILD.gn ('k') | services/debugger/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/dart/content_handler_app_service_connector.h" 5 #include "services/dart/content_handler_app_service_connector.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "mojo/public/cpp/bindings/interface_request.h" 8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 9 #include "mojo/services/network/interfaces/network_service.mojom.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 // This callback runs on the Dart content handler message loop thread. Bound 13 // This callback runs on the Dart content handler message loop thread. Bound
14 // to |this| by a weak pointer. 14 // to |this| by a weak pointer.
15 template<typename Interface> 15 template<typename Interface>
16 void ContentHandlerAppServiceConnector::Connect( 16 void ContentHandlerAppServiceConnector::Connect(
17 std::string application_name, 17 std::string application_name,
18 mojo::InterfaceRequest<Interface> interface_request) { 18 mojo::InterfaceRequest<Interface> interface_request) {
19 mojo::ApplicationConnection* application_connection = 19 mojo::ApplicationConnection* application_connection =
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return interface_ptr.PassInterface().PassHandle().release().value(); 56 return interface_ptr.PassInterface().PassHandle().release().value();
57 } 57 }
58 break; 58 break;
59 default: 59 default:
60 return MOJO_HANDLE_INVALID; 60 return MOJO_HANDLE_INVALID;
61 break; 61 break;
62 } 62 }
63 } 63 }
64 64
65 } // namespace dart 65 } // namespace dart
OLDNEW
« no previous file with comments | « services/dart/BUILD.gn ('k') | services/debugger/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698