| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CATALOG_CATALOG_H_ | 5 #ifndef MOJO_SERVICES_CATALOG_CATALOG_H_ |
| 6 #define MOJO_SERVICES_CATALOG_CATALOG_H_ | 6 #define MOJO_SERVICES_CATALOG_CATALOG_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void BindResolver(mojom::ResolverRequest request); | 41 void BindResolver(mojom::ResolverRequest request); |
| 42 void BindShellResolver(mojo::shell::mojom::ShellResolverRequest request); | 42 void BindShellResolver(mojo::shell::mojom::ShellResolverRequest request); |
| 43 void BindCatalog(mojom::CatalogRequest request); | 43 void BindCatalog(mojom::CatalogRequest request); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 using MojoNameAliasMap = | 46 using MojoNameAliasMap = |
| 47 std::map<std::string, std::pair<std::string, std::string>>; | 47 std::map<std::string, std::pair<std::string, std::string>>; |
| 48 | 48 |
| 49 // mojom::Resolver: | 49 // mojom::Resolver: |
| 50 void ResolveResponse( | |
| 51 mojo::URLResponsePtr response, | |
| 52 const ResolveResponseCallback& callback) override; | |
| 53 void ResolveInterfaces(mojo::Array<mojo::String> interfaces, | 50 void ResolveInterfaces(mojo::Array<mojo::String> interfaces, |
| 54 const ResolveInterfacesCallback& callback) override; | 51 const ResolveInterfacesCallback& callback) override; |
| 55 void ResolveMIMEType(const mojo::String& mime_type, | 52 void ResolveMIMEType(const mojo::String& mime_type, |
| 56 const ResolveMIMETypeCallback& callback) override; | 53 const ResolveMIMETypeCallback& callback) override; |
| 57 void ResolveProtocolScheme( | 54 void ResolveProtocolScheme( |
| 58 const mojo::String& scheme, | 55 const mojo::String& scheme, |
| 59 const ResolveProtocolSchemeCallback& callback) override; | 56 const ResolveProtocolSchemeCallback& callback) override; |
| 60 | 57 |
| 61 // mojo::shell::mojom::ShellResolver: | 58 // mojo::shell::mojom::ShellResolver: |
| 62 void ResolveMojoName(const mojo::String& mojo_name, | 59 void ResolveMojoName(const mojo::String& mojo_name, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 EntryCache* system_catalog_; | 100 EntryCache* system_catalog_; |
| 104 | 101 |
| 105 base::WeakPtrFactory<Catalog> weak_factory_; | 102 base::WeakPtrFactory<Catalog> weak_factory_; |
| 106 | 103 |
| 107 DISALLOW_COPY_AND_ASSIGN(Catalog); | 104 DISALLOW_COPY_AND_ASSIGN(Catalog); |
| 108 }; | 105 }; |
| 109 | 106 |
| 110 } // namespace catalog | 107 } // namespace catalog |
| 111 | 108 |
| 112 #endif // MOJO_SERVICES_CATALOG_CATALOG_H_ | 109 #endif // MOJO_SERVICES_CATALOG_CATALOG_H_ |
| OLD | NEW |