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

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

Issue 19833005: Implement PollingThread for Device Motion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed compilation issues 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_shared_memory.h
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory.h b/content/browser/device_orientation/data_fetcher_shared_memory.h
index 8168e87134e9b119ec881f4f4da4d698320bbe2b..670c6b77cdafe44e67be1182981abdb76e1a1315 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory.h
+++ b/content/browser/device_orientation/data_fetcher_shared_memory.h
@@ -14,9 +14,11 @@ class WebDeviceMotionData;
namespace content {
-class DataFetcherSharedMemory {
+class CONTENT_EXPORT DataFetcherSharedMemory {
piman 2013/07/26 17:47:48 This class is now used from multiple threads. Plea
timvolodine 2013/07/29 12:06:25 Done.
public:
- DataFetcherSharedMemory() : device_motion_buffer_(NULL) { }
+ DataFetcherSharedMemory()
+ : device_motion_buffer_(NULL),
+ started_(false) { }
virtual ~DataFetcherSharedMemory();
// Returns true if this fetcher needs explicit calls to fetch the data.
@@ -39,6 +41,7 @@ class DataFetcherSharedMemory {
private:
DeviceMotionHardwareBuffer* device_motion_buffer_;
+ bool started_;
DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);
};

Powered by Google App Engine
This is Rietveld 408576698