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

Unified Diff: content/child/child_client_native_pixmap_factory_message_filter_ozone.h

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to ClientNativePixmapFactory Created 5 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/child/child_client_native_pixmap_factory_message_filter_ozone.h
diff --git a/content/child/child_client_native_pixmap_factory_message_filter_ozone.h b/content/child/child_client_native_pixmap_factory_message_filter_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..7296fa734a967a9e8db945f6e462bcdac3423d81
--- /dev/null
+++ b/content/child/child_client_native_pixmap_factory_message_filter_ozone.h
@@ -0,0 +1,31 @@
+// Copyright 2015 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_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_MESSAGE_FILTER_OZONE_H_
+#define CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_MESSAGE_FILTER_OZONE_H_
+
+#include "base/file_descriptor_posix.h"
+#include "ipc/message_filter.h"
+
+namespace content {
+
+// Receives database messages from the browser process and processes them on the
+// IO thread.
+class ChildClientNativePixmapFactoryMessageFilter : public IPC::MessageFilter {
+ public:
+ ChildClientNativePixmapFactoryMessageFilter();
+ ~ChildClientNativePixmapFactoryMessageFilter() override;
+
+ void OnSetVirtualDevice(const base::FileDescriptor& virtual_device);
+
+ // IPC::MessageFilter
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChildClientNativePixmapFactoryMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_FACTORY_MESSAGE_FILTER_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698