| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // A message filter for messages from the renderer to the GpuProcessHost(UIShim) | 30 // A message filter for messages from the renderer to the GpuProcessHost(UIShim) |
| 31 // in the browser. Such messages are typically destined for the GPU process, | 31 // in the browser. Such messages are typically destined for the GPU process, |
| 32 // but need to be mediated by the browser. | 32 // but need to be mediated by the browser. |
| 33 class GpuMessageFilter : public BrowserMessageFilter { | 33 class GpuMessageFilter : public BrowserMessageFilter { |
| 34 public: | 34 public: |
| 35 GpuMessageFilter(int render_process_id, | 35 GpuMessageFilter(int render_process_id, |
| 36 RenderWidgetHelper* render_widget_helper); | 36 RenderWidgetHelper* render_widget_helper); |
| 37 | 37 |
| 38 // BrowserMessageFilter methods: | 38 // BrowserMessageFilter methods: |
| 39 virtual bool OnMessageReceived(const IPC::Message& message, | 39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 40 bool* message_was_ok) OVERRIDE; | |
| 41 | 40 |
| 42 // This set of API is used to subscribe to frame presentation events. | 41 // This set of API is used to subscribe to frame presentation events. |
| 43 // See RenderWidgetHostViewFrameSubscriber for more details. | 42 // See RenderWidgetHostViewFrameSubscriber for more details. |
| 44 void BeginFrameSubscription( | 43 void BeginFrameSubscription( |
| 45 int route_id, | 44 int route_id, |
| 46 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 45 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
| 47 void EndFrameSubscription(int route_id); | 46 void EndFrameSubscription(int route_id); |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 friend class BrowserThread; | 49 friend class BrowserThread; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 84 |
| 86 typedef std::vector<linked_ptr<FrameSubscription> > FrameSubscriptionList; | 85 typedef std::vector<linked_ptr<FrameSubscription> > FrameSubscriptionList; |
| 87 FrameSubscriptionList frame_subscription_list_; | 86 FrameSubscriptionList frame_subscription_list_; |
| 88 | 87 |
| 89 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); | 88 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 } // namespace content | 91 } // namespace content |
| 93 | 92 |
| 94 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 93 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
| OLD | NEW |