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