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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 34
35 class DrmThreadMessageProxy : public IPC::MessageFilter, 35 class DrmThreadMessageProxy : public IPC::MessageFilter,
36 public InterThreadMessagingProxy { 36 public InterThreadMessagingProxy {
37 public: 37 public:
38 DrmThreadMessageProxy(); 38 DrmThreadMessageProxy();
39 39
40 // InterThreadMessagingProxy. 40 // InterThreadMessagingProxy.
41 void SetDrmThread(DrmThread* thread) override; 41 void SetDrmThread(DrmThread* thread) override;
42 42
43 // IPC::MessageFilter: 43 // IPC::MessageFilter:
44 void OnFilterAdded(IPC::Sender* sender) override; 44 void OnFilterAdded(IPC::Channel* channel) override;
45 bool OnMessageReceived(const IPC::Message& message) override; 45 bool OnMessageReceived(const IPC::Message& message) override;
46 46
47 private: 47 private:
48 ~DrmThreadMessageProxy() override; 48 ~DrmThreadMessageProxy() override;
49 49
50 void OnCreateWindow(gfx::AcceleratedWidget widget); 50 void OnCreateWindow(gfx::AcceleratedWidget widget);
51 void OnDestroyWindow(gfx::AcceleratedWidget widget); 51 void OnDestroyWindow(gfx::AcceleratedWidget widget);
52 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, 52 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
53 const gfx::Rect& bounds); 53 const gfx::Rect& bounds);
54 void OnCursorSet(gfx::AcceleratedWidget widget, 54 void OnCursorSet(gfx::AcceleratedWidget widget,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 IPC::Sender* sender_ = nullptr; 97 IPC::Sender* sender_ = nullptr;
98 98
99 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; 99 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); 101 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy);
102 }; 102 };
103 103
104 } // namespace ui 104 } // namespace ui
105 105
106 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ 106 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_message_filter.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698