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