OLD | NEW |
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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 NetworkServiceDelegate(); | 30 NetworkServiceDelegate(); |
31 ~NetworkServiceDelegate() override; | 31 ~NetworkServiceDelegate() override; |
32 | 32 |
33 void AddObserver(NetworkServiceDelegateObserver* observer); | 33 void AddObserver(NetworkServiceDelegateObserver* observer); |
34 void RemoveObserver(NetworkServiceDelegateObserver* observer); | 34 void RemoveObserver(NetworkServiceDelegateObserver* observer); |
35 | 35 |
36 private: | 36 private: |
37 // mojo::ShellClient implementation. | 37 // mojo::ShellClient implementation. |
38 void Initialize(Connector* connector, const std::string& url, | 38 void Initialize(Connector* connector, const std::string& url, |
39 uint32_t id, uint32_t user_id) override; | 39 const std::string& user_id, uint32_t id) override; |
40 bool AcceptConnection(Connection* connection) override; | 40 bool AcceptConnection(Connection* connection) override; |
41 | 41 |
42 // InterfaceFactory<NetworkService> implementation. | 42 // InterfaceFactory<NetworkService> implementation. |
43 void Create(Connection* connection, | 43 void Create(Connection* connection, |
44 InterfaceRequest<NetworkService> request) override; | 44 InterfaceRequest<NetworkService> request) override; |
45 | 45 |
46 // InterfaceFactory<CookieStore> implementation. | 46 // InterfaceFactory<CookieStore> implementation. |
47 void Create(Connection* connection, | 47 void Create(Connection* connection, |
48 InterfaceRequest<CookieStore> request) override; | 48 InterfaceRequest<CookieStore> request) override; |
49 | 49 |
(...skipping 16 matching lines...) Expand all Loading... |
66 scoped_ptr<NetworkContext> context_; | 66 scoped_ptr<NetworkContext> context_; |
67 | 67 |
68 mojo::MessageLoopRefFactory ref_factory_; | 68 mojo::MessageLoopRefFactory ref_factory_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(NetworkServiceDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(NetworkServiceDelegate); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace mojo | 73 } // namespace mojo |
74 | 74 |
75 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ | 75 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ |
OLD | NEW |