| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_service_manager_H_ | 5 #ifndef MOJO_SHELL_service_manager_H_ |
| 6 #define MOJO_SHELL_service_manager_H_ | 6 #define MOJO_SHELL_service_manager_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "mojo/public/shell/shell.mojom.h" |
| 12 #include "mojo/public/system/core_cpp.h" | 13 #include "mojo/public/system/core_cpp.h" |
| 13 #include "mojom/shell.h" | |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace shell { | 17 namespace shell { |
| 18 | 18 |
| 19 class ServiceManager { | 19 class ServiceManager { |
| 20 public: | 20 public: |
| 21 // Interface to allowing default loading behavior to be overridden for a | 21 // Interface to allowing default loading behavior to be overridden for a |
| 22 // specific url. | 22 // specific url. |
| 23 class Loader { | 23 class Loader { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ServiceFactoryMap url_to_service_factory_; | 65 ServiceFactoryMap url_to_service_factory_; |
| 66 typedef std::map<GURL, Loader*> LoaderMap; | 66 typedef std::map<GURL, Loader*> LoaderMap; |
| 67 LoaderMap url_to_loader_; | 67 LoaderMap url_to_loader_; |
| 68 DISALLOW_COPY_AND_ASSIGN(ServiceManager); | 68 DISALLOW_COPY_AND_ASSIGN(ServiceManager); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace shell | 71 } // namespace shell |
| 72 } // namespace mojo | 72 } // namespace mojo |
| 73 | 73 |
| 74 #endif // MOJO_SHELL_service_manager_H_ | 74 #endif // MOJO_SHELL_service_manager_H_ |
| OLD | NEW |