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

Side by Side Diff: content/browser/renderer_host/gpu_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gamepad_browser_message_filter.cc ('k') | content/browser/renderer_host/gpu_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698