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

Unified Diff: content/browser/device_orientation/data_fetcher_impl_win.h

Issue 18572014: Implement Android shared memory data fetcher for Device Motion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-sync-12June-tryASYNC-2-bis-tryRebase-6
Patch Set: fixed comments, added proper singleton implementation and shutdown. Created 7 years, 5 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: content/browser/device_orientation/data_fetcher_impl_win.h
diff --git a/content/browser/device_orientation/data_fetcher_impl_win.h b/content/browser/device_orientation/data_fetcher_impl_win.h
index 9a065066a31f0d5a9e81b2a63f846d51acd8b49c..a69a6d436f0c8b051dc86c765ad47459b8cb1530 100644
--- a/content/browser/device_orientation/data_fetcher_impl_win.h
+++ b/content/browser/device_orientation/data_fetcher_impl_win.h
@@ -36,10 +36,14 @@ class DataFetcherImplWin : public DataFetcher {
// Implement DataFetcher.
virtual const DeviceData* GetDeviceData(DeviceData::Type type) OVERRIDE;
+ void Stop();
+
private:
class SensorEventSink;
friend SensorEventSink;
+ static DataFetcherImplWin* instance();
+
DataFetcherImplWin();
bool Initialize();
void OnOrientationData(Orientation* orientation);

Powered by Google App Engine
This is Rietveld 408576698