Index: ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h |
diff --git a/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h |
similarity index 78% |
rename from ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h |
rename to ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h |
index a21a2a6b7cf9a4ab8060fc6c8c200f0668ef2046..8b23f5c72457e18cebfd846b8d74cfc77dcc9fb9 100644 |
--- a/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h |
+++ b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
-#define IOS_CHROME_COMMON_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
+#ifndef IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
+#define IOS_CHROME_BROWSER_PHYSICAL_WEB_IOS_CHROME_PHYSICAL_WEB_DATA_SOURCE_H_ |
#include "base/macros.h" |
#import "base/mac/scoped_nsobject.h" |
@@ -13,13 +13,15 @@ namespace base { |
class ListValue; |
} |
class PhysicalWebListener; |
+class PrefService; |
@class PhysicalWebScanner; |
+@class PhysicalWebInitialStateRecorder; |
// iOS implementation of PhysicalWebDataSource |
class IOSChromePhysicalWebDataSource : public PhysicalWebDataSourceImpl { |
public: |
- IOSChromePhysicalWebDataSource(); |
+ IOSChromePhysicalWebDataSource(PrefService* pref_service); |
~IOSChromePhysicalWebDataSource() override; |
// Starts scanning for Physical Web URLs. If |network_request_enabled| is |
@@ -41,6 +43,9 @@ class IOSChromePhysicalWebDataSource : public PhysicalWebDataSourceImpl { |
// Scanner for nearby Physical Web URL devices. |
base::scoped_nsobject<PhysicalWebScanner> scanner_; |
+ // Utility for fetching initial application state for logging purposes. |
+ base::scoped_nsobject<PhysicalWebInitialStateRecorder> initialStateRecorder_; |
+ |
DISALLOW_COPY_AND_ASSIGN(IOSChromePhysicalWebDataSource); |
}; |