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

Unified Diff: ios/chrome/browser/physical_web/create_physical_web_data_source.h

Issue 2113473002: Add a Physical Web data source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove notification Created 4 years, 6 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: 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_

Powered by Google App Engine
This is Rietveld 408576698