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

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

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
7 7
8 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/application/public/cpp/application_delegate.h"
9 #include "mojo/application/public/cpp/application_impl.h"
10 #include "mojo/application/public/cpp/interface_factory.h"
9 #include "mojo/services/network/network_context.h" 11 #include "mojo/services/network/network_context.h"
10 #include "mojo/services/network/network_service_impl.h" 12 #include "mojo/services/network/network_service_impl.h"
11 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h"
12 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h" 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr.h"
14 14
15 class NetworkServiceDelegate 15 class NetworkServiceDelegate
16 : public mojo::ApplicationDelegate, 16 : public mojo::ApplicationDelegate,
17 public mojo::InterfaceFactory<mojo::NetworkService> { 17 public mojo::InterfaceFactory<mojo::NetworkService> {
18 public: 18 public:
19 NetworkServiceDelegate(); 19 NetworkServiceDelegate();
20 ~NetworkServiceDelegate() override; 20 ~NetworkServiceDelegate() override;
21 21
22 private: 22 private:
23 // mojo::ApplicationDelegate implementation. 23 // mojo::ApplicationDelegate implementation.
24 void Initialize(mojo::ApplicationImpl* app) override; 24 void Initialize(mojo::ApplicationImpl* app) override;
25 bool ConfigureIncomingConnection( 25 bool ConfigureIncomingConnection(
26 mojo::ApplicationConnection* connection) override; 26 mojo::ApplicationConnection* connection) override;
27 void Quit() override; 27 void Quit() override;
28 28
29 // mojo::InterfaceFactory<mojo::NetworkService> implementation. 29 // mojo::InterfaceFactory<mojo::NetworkService> implementation.
30 void Create(mojo::ApplicationConnection* connection, 30 void Create(mojo::ApplicationConnection* connection,
31 mojo::InterfaceRequest<mojo::NetworkService> request) override; 31 mojo::InterfaceRequest<mojo::NetworkService> request) override;
32 32
33 private: 33 private:
34 scoped_ptr<mojo::NetworkContext> context_; 34 scoped_ptr<mojo::NetworkContext> context_;
35 }; 35 };
36 36
37 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 37 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698