Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: components/resource_provider/resource_provider_impl.h

Issue 1108403008: Adds resource_provider::ResourceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/resource_provider/resource_provider_impl.h
diff --git a/components/resource_provider/resource_provider_impl.h b/components/resource_provider/resource_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb2e22bb58082ea9b11b099709a0b329fbffa342
--- /dev/null
+++ b/components/resource_provider/resource_provider_impl.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_
+#define COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_
+
+#include "base/files/file_path.h"
+#include "components/resource_provider/public/interfaces/resource_provider.mojom.h"
+
+namespace resource_provider {
+
+// ResourceProvider implementation that loads resources in background threads.
+class ResourceProviderImpl : public resource_provider::ResourceProvider {
+ public:
+ explicit ResourceProviderImpl(const base::FilePath& application_path);
+ ~ResourceProviderImpl() override;
+
+ private:
+ // ResourceProvider:
+ void GetResources(mojo::Array<mojo::String> paths,
+ const GetResourcesCallback& callback) override;
+
+ const base::FilePath application_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(ResourceProviderImpl);
+};
+
+} // namespace resource_provider
+
+#endif // COMPONENTS_RESOURCE_PROVIDER_RESOURCE_PROVIDER_IMPL_H_
« no previous file with comments | « components/resource_provider/resource_provider_apptest.cc ('k') | components/resource_provider/resource_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698