Index: ios/chrome/browser/physical_web/create_physical_web_data_source.h |
diff --git a/ios/chrome/browser/physical_web/create_physical_web_data_source.h b/ios/chrome/browser/physical_web/create_physical_web_data_source.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f2b35a000e9dcb2133bcdc3b7b9bad8121dc28b1 |
--- /dev/null |
+++ b/ios/chrome/browser/physical_web/create_physical_web_data_source.h |
@@ -0,0 +1,19 @@ |
+// Copyright 2016 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 IOS_CHROME_BROWSER_PHYSICAL_WEB_CREATE_PHYSICAL_WEB_DATA_SOURCE_H_ |
+#define IOS_CHROME_BROWSER_PHYSICAL_WEB_CREATE_PHYSICAL_WEB_DATA_SOURCE_H_ |
+ |
+#include <memory> |
+ |
+class PhysicalWebDataSource; |
+ |
+// Creates a new instance of PhysicalWebDataSourceIOS. The returned object |
+// is fully initialized and can be registered as global singleton. |
+// |
+// This helper function allows the construction of PhysicalWebDataSourceIOS |
+// from pure C++ (PhysicalWebDataSourceIOS is an Objective-C++ class). |
+std::unique_ptr<PhysicalWebDataSource> CreatePhysicalWebDataSourceIOS(); |
+ |
+#endif // IOS_CHROME_BROWSER_PHYSICAL_WEB_CREATE_PHYSICAL_WEB_DATA_SOURCE_H_ |