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

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

Issue 2037513002: Convert device_sensors to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conversion--mime-registry
Patch Set: rebase Created 4 years, 6 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_sensor_message_filter.h
diff --git a/content/browser/device_sensors/device_sensor_message_filter.h b/content/browser/device_sensors/device_sensor_message_filter.h
deleted file mode 100644
index 13d0b0ac3ea7bf6f6fd2cff27190b8cdabe72aac..0000000000000000000000000000000000000000
--- a/content/browser/device_sensors/device_sensor_message_filter.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_MESSAGE_FILTER_H_
-#define CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_MESSAGE_FILTER_H_
-
-#include "base/macros.h"
-#include "base/memory/shared_memory.h"
-#include "content/browser/device_sensors/device_sensors_consts.h"
-#include "content/public/browser/browser_message_filter.h"
-
-namespace content {
-
-// A base class for device sensor related message filters.
-class DeviceSensorMessageFilter : public BrowserMessageFilter {
- public:
- DeviceSensorMessageFilter(ConsumerType consumer_type,
- uint32_t message_class_to_filter);
-
- protected:
- // All methods below to be called on the IO thread.
- ~DeviceSensorMessageFilter() override;
-
- virtual void OnStartPolling();
- virtual void OnStopPolling();
- // To be overriden by the subclass in order to send the appropriate message
- // to the renderer with a handle to shared memory.
- virtual void DidStartPolling(base::SharedMemoryHandle handle) = 0;
-
- private:
- ConsumerType consumer_type_;
- bool is_started_;
-
- DISALLOW_COPY_AND_ASSIGN(DeviceSensorMessageFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVICE_SENSORS_DEVICE_SENSOR_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698