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

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

Issue 2458613004: Record the initial state of the Physical Web at startup (Closed)
Patch Set: fix retain loop Created 3 years, 11 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/ios_chrome_physical_web_data_source.h
diff --git a/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h
index 40d0ebb021f5a4785bc4d56fe57fbd5413ff1946..20d0756be93f50d4f6b343177532f3fc542a4a93 100644
--- a/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h
+++ b/ios/chrome/browser/physical_web/ios_chrome_physical_web_data_source.h
@@ -12,14 +12,16 @@
namespace base {
class ListValue;
}
+class PrefService;
@class PhysicalWebScanner;
+@class PhysicalWebInitialStateRecorder;
// iOS implementation of PhysicalWebDataSource
class IOSChromePhysicalWebDataSource
: public physical_web::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
// 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);
};

Powered by Google App Engine
This is Rietveld 408576698