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

Side by Side Diff: trunk/src/mojo/shell/network_service_loader.h

Issue 447063005: Revert 288013 "First cut at "content handling" support in Mojo." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 // ServiceLoader responsible for creating connections to the NetworkService. 24 // ServiceLoader responsible for creating connections to the NetworkService.
25 class NetworkServiceLoader : public ServiceLoader, 25 class NetworkServiceLoader : public ServiceLoader,
26 public ApplicationDelegate, 26 public ApplicationDelegate,
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 Load(ServiceManager* manager, 34 virtual void LoadService(
35 const GURL& url, 35 ServiceManager* manager,
36 scoped_refptr<LoadCallbacks> callbacks) OVERRIDE; 36 const GURL& url,
37 ScopedMessagePipeHandle shell_handle) OVERRIDE;
37 virtual void OnServiceError(ServiceManager* manager, 38 virtual void OnServiceError(ServiceManager* manager,
38 const GURL& url) OVERRIDE; 39 const GURL& url) OVERRIDE;
39 40
40 // ApplicationDelegate overrides. 41 // ApplicationDelegate overrides.
41 virtual void Initialize(ApplicationImpl* app) OVERRIDE; 42 virtual void Initialize(ApplicationImpl* app) OVERRIDE;
42 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection) 43 virtual bool ConfigureIncomingConnection(ApplicationConnection* connection)
43 OVERRIDE; 44 OVERRIDE;
44 45
45 // InterfaceFactory<NetworkService> overrides. 46 // InterfaceFactory<NetworkService> overrides.
46 virtual void Create(ApplicationConnection* connection, 47 virtual void Create(ApplicationConnection* connection,
47 InterfaceRequest<NetworkService> request) OVERRIDE; 48 InterfaceRequest<NetworkService> request) OVERRIDE;
48 49
49 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_; 50 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_;
50 scoped_ptr<NetworkContext> context_; 51 scoped_ptr<NetworkContext> context_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(NetworkServiceLoader); 53 DISALLOW_COPY_AND_ASSIGN(NetworkServiceLoader);
53 }; 54 };
54 55
55 } // namespace shell 56 } // namespace shell
56 } // namespace mojo 57 } // namespace mojo
57 58
58 #endif // MOJO_SHELL_NETWORK_SERVICE_LOADER_H_ 59 #endif // MOJO_SHELL_NETWORK_SERVICE_LOADER_H_
OLDNEW
« no previous file with comments | « trunk/src/mojo/shell/dynamic_service_loader_unittest.cc ('k') | trunk/src/mojo/shell/network_service_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698