| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ |
| 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ | 6 #define CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
| 12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 13 #include "content/browser/device_sensors/device_sensors_consts.h" | 14 #include "content/browser/device_sensors/device_sensors_consts.h" |
| 14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // Sensor data fetchers should derive from this base class and implement | 19 // Sensor data fetchers should derive from this base class and implement |
| 19 // the abstract Start() and Stop() methods. | 20 // the abstract Start() and Stop() methods. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Owning pointers. Objects in the map are deleted in dtor. | 94 // Owning pointers. Objects in the map are deleted in dtor. |
| 94 typedef std::map<ConsumerType, base::SharedMemory*> SharedMemoryMap; | 95 typedef std::map<ConsumerType, base::SharedMemory*> SharedMemoryMap; |
| 95 SharedMemoryMap shared_memory_map_; | 96 SharedMemoryMap shared_memory_map_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemoryBase); | 98 DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemoryBase); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace content | 101 } // namespace content |
| 101 | 102 |
| 102 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ | 103 #endif // CONTENT_BROWSER_DEVICE_SENSORS_DATA_FETCHER_SHARED_MEMORY_BASE_H_ |
| OLD | NEW |