| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHELL_NETWORK_SERVICE_LOADER_H_ | 5 #ifndef MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ |
| 6 #define MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ | 6 #define MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public InterfaceFactory<NetworkService> { | 27 public InterfaceFactory<NetworkService> { |
| 28 public: | 28 public: |
| 29 NetworkServiceLoader(); | 29 NetworkServiceLoader(); |
| 30 virtual ~NetworkServiceLoader(); | 30 virtual ~NetworkServiceLoader(); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // ServiceLoader overrides: | 33 // ServiceLoader overrides: |
| 34 virtual void LoadService( | 34 virtual void LoadService( |
| 35 ServiceManager* manager, | 35 ServiceManager* manager, |
| 36 const GURL& url, | 36 const GURL& url, |
| 37 ScopedMessagePipeHandle shell_handle) OVERRIDE; | 37 scoped_refptr<LoadServiceCallbacks> callbacks) OVERRIDE; |
| 38 virtual void OnServiceError(ServiceManager* manager, | 38 virtual void OnServiceError(ServiceManager* manager, |
| 39 const GURL& url) OVERRIDE; | 39 const GURL& url) OVERRIDE; |
| 40 | 40 |
| 41 // ApplicationDelegate overrides. | 41 // ApplicationDelegate overrides. |
| 42 virtual void Initialize(ApplicationImpl* app) OVERRIDE; | 42 virtual void Initialize(ApplicationImpl* app) OVERRIDE; |
| 43 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) | 43 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) |
| 44 OVERRIDE; | 44 OVERRIDE; |
| 45 | 45 |
| 46 // InterfaceFactory<NetworkService> overrides. | 46 // InterfaceFactory<NetworkService> overrides. |
| 47 virtual void Create(ApplicationConnection* connection, | 47 virtual void Create(ApplicationConnection* connection, |
| 48 InterfaceRequest<NetworkService> request) OVERRIDE; | 48 InterfaceRequest<NetworkService> request) OVERRIDE; |
| 49 | 49 |
| 50 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_; | 50 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_; |
| 51 scoped_ptr<NetworkContext> context_; | 51 scoped_ptr<NetworkContext> context_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(NetworkServiceLoader); | 53 DISALLOW_COPY_AND_ASSIGN(NetworkServiceLoader); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace shell | 56 } // namespace shell |
| 57 } // namespace mojo | 57 } // namespace mojo |
| 58 | 58 |
| 59 #endif // MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ | 59 #endif // MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ |
| OLD | NEW |