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

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

Issue 22926029: Mac: implement orientation/motion shared memory data fetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FakeNonPollingDataFetcher on stack Created 7 years, 4 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_shared_memory_base.h
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory_base.h b/content/browser/device_orientation/data_fetcher_shared_memory_base.h
index a44959601ace325619349d349483c61297af6903..3bd4103d437353ba3416326ec99d0faa58a8bbc2 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_base.h
+++ b/content/browser/device_orientation/data_fetcher_shared_memory_base.h
@@ -59,8 +59,9 @@ class CONTENT_EXPORT DataFetcherSharedMemoryBase {
// fetch the sensor data.
virtual bool IsPolling() const;
- // Start() method should call InitSharedMemoryBuffer() and cache the obtained
- // pointer for efficienty and thread-safety.
+ // Start() method should call InitSharedMemoryBuffer() to get the shared
+ // memory pointer. If IsPolling() is true both Start() and Stop() methods
+ // are called from the |polling_thread_|.
virtual bool Start(ConsumerType consumer_type) = 0;
virtual bool Stop(ConsumerType consumer_type) = 0;

Powered by Google App Engine
This is Rietveld 408576698