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

Unified Diff: content/browser/device_sensors/device_inertial_sensor_service.h

Issue 2037513002: Convert device_sensors to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conversion--mime-registry
Patch Set: Created 4 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_sensors/device_inertial_sensor_service.h
diff --git a/content/browser/device_sensors/device_inertial_sensor_service.h b/content/browser/device_sensors/device_inertial_sensor_service.h
index bd3cf0c1392b4dea8d72cccd89a749ca336d1ecb..fb2d9e4f61e5f22eaca4bf5ec77df37b0e936e0e 100644
--- a/content/browser/device_sensors/device_inertial_sensor_service.h
+++ b/content/browser/device_sensors/device_inertial_sensor_service.h
@@ -14,6 +14,7 @@
#include "base/threading/thread_checker.h"
#include "content/browser/device_sensors/device_sensors_consts.h"
#include "content/common/content_export.h"
+#include "mojo/public/cpp/system/buffer.h"
namespace content {
@@ -36,10 +37,9 @@ class CONTENT_EXPORT DeviceInertialSensorService {
// Must be called on the I/O thread.
void RemoveConsumer(ConsumerType cosumer_type);
- // Returns the shared memory handle of the device motion data duplicated
- // into the given process.
- base::SharedMemoryHandle GetSharedMemoryHandleForProcess(
- ConsumerType consumer_type, base::ProcessHandle handle);
+ // Returns the shared memory handle of the device motion data.
+ mojo::ScopedSharedBufferHandle GetSharedMemoryHandle(
+ ConsumerType consumer_type);
// Stop/join with the background polling thread in |provider_|.
void Shutdown();

Powered by Google App Engine
This is Rietveld 408576698