OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ | 5 #ifndef COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ |
6 #define COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ | 6 #define COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" | 10 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" |
11 #include "mojo/application/public/cpp/application_delegate.h" | 11 #include "mojo/application/public/cpp/application_delegate.h" |
12 #include "mojo/application/public/cpp/interface_factory.h" | 12 #include "mojo/application/public/cpp/interface_factory.h" |
13 #include "mojo/common/weak_binding_set.h" | 13 #include "mojo/common/weak_binding_set.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" | |
16 | 15 |
17 namespace mojo { | 16 namespace mojo { |
18 class ApplicationImpl; | 17 class ApplicationImpl; |
19 } | 18 } |
20 | 19 |
21 namespace resource_provider { | 20 namespace resource_provider { |
22 | 21 |
23 class ResourceProviderApp : public mojo::ApplicationDelegate, | 22 class ResourceProviderApp : public mojo::ApplicationDelegate, |
24 public mojo::InterfaceFactory<ResourceProvider> { | 23 public mojo::InterfaceFactory<ResourceProvider> { |
25 public: | 24 public: |
(...skipping 16 matching lines...) Expand all Loading... |
42 // core services, it'll be the url of that. Otherwise it'll just be | 41 // core services, it'll be the url of that. Otherwise it'll just be |
43 // mojo:resource_provider. | 42 // mojo:resource_provider. |
44 std::string resource_provider_app_url_; | 43 std::string resource_provider_app_url_; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(ResourceProviderApp); | 45 DISALLOW_COPY_AND_ASSIGN(ResourceProviderApp); |
47 }; | 46 }; |
48 | 47 |
49 } // namespace resource_provider | 48 } // namespace resource_provider |
50 | 49 |
51 #endif // COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ | 50 #endif // COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_APP_H_ |
OLD | NEW |