| 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_IMPL_H_ | 5 #ifndef COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_ |
| 6 #define COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_ | 6 #define COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" | 9 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" |
| 10 | 10 |
| 11 namespace resource_provider { | 11 namespace resource_provider { |
| 12 | 12 |
| 13 // ResourceProvider implementation that loads resources in background threads. | 13 // ResourceProvider implementation that loads resources in background threads. |
| 14 class ResourceProviderImpl : public resource_provider::ResourceProvider { | 14 class ResourceProviderImpl : public resource_provider::ResourceProvider { |
| 15 public: | 15 public: |
| 16 ResourceProviderImpl(const base::FilePath& application_path, | 16 ResourceProviderImpl(const base::FilePath& application_path, |
| 17 const std::string& resource_provider_app_url); | 17 const std::string& resource_provider_app_url); |
| 18 ~ResourceProviderImpl() override; | 18 ~ResourceProviderImpl() override; |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 // ResourceProvider: | 21 // ResourceProvider: |
| 22 void GetResources(mojo::Array<mojo::String> paths, | 22 void GetResources(mojo::Array<mojo::String> paths, |
| 23 const GetResourcesCallback& callback) override; | 23 const GetResourcesCallback& callback) override; |
| 24 void GetICUHandle(const GetICUHandleCallback& callback) override; | |
| 25 | 24 |
| 26 const base::FilePath application_path_; | 25 const base::FilePath application_path_; |
| 27 const std::string resource_provider_app_url_; | 26 const std::string resource_provider_app_url_; |
| 28 | 27 |
| 29 DISALLOW_COPY_AND_ASSIGN(ResourceProviderImpl); | 28 DISALLOW_COPY_AND_ASSIGN(ResourceProviderImpl); |
| 30 }; | 29 }; |
| 31 | 30 |
| 32 } // namespace resource_provider | 31 } // namespace resource_provider |
| 33 | 32 |
| 34 #endif // COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_ | 33 #endif // COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_ |
| OLD | NEW |