OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_SHELL_DYNAMIC_SERVICE_LOADER_H_ | |
6 #define MOJO_SHELL_DYNAMIC_SERVICE_LOADER_H_ | |
7 | |
8 #include <map> | |
9 | |
10 #include "mojo/public/system/core_cpp.h" | |
11 #include "mojo/shell/service_manager.h" | |
12 #include "url/gurl.h" | |
13 | |
14 namespace mojo { | |
15 namespace shell { | |
16 | |
17 class Context; | |
18 | |
19 class DynamicServiceLoader : public ServiceManager::Loader { | |
viettrungluu
2014/01/03 17:44:49
A class-level comment would be nice.
DaveMoore
2014/01/03 18:05:49
Done.
| |
20 public: | |
21 explicit DynamicServiceLoader(Context* context); | |
22 virtual ~DynamicServiceLoader(); | |
23 | |
24 private: | |
25 class LoadContext; | |
26 | |
27 virtual void Load(const GURL& url, | |
28 ScopedMessagePipeHandle service_handle) MOJO_OVERRIDE; | |
29 | |
30 typedef std::map<GURL, LoadContext*> LoadContextMap; | |
31 LoadContextMap url_to_load_context_; | |
32 Context* context_; | |
33 DISALLOW_COPY_AND_ASSIGN(DynamicServiceLoader); | |
viettrungluu
2014/01/03 17:44:49
#include "base/basictypes.h" for this.
DaveMoore
2014/01/03 18:05:49
Done.
| |
34 }; | |
35 | |
36 } // namespace shell | |
37 } // namespace mojo | |
38 | |
39 #endif // MOJO_SHELL_DYNAMIC_SERVICE_LOADER_H_ | |
OLD | NEW |