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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_renderer_connection.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // This class represents a connection from the browser to the renderer for 30 // This class represents a connection from the browser to the renderer for
31 // sending/receiving pepper ResourceHost related messages. When the browser 31 // sending/receiving pepper ResourceHost related messages. When the browser
32 // and renderer communicate about ResourceHosts, they should pass the plugin 32 // and renderer communicate about ResourceHosts, they should pass the plugin
33 // process ID to identify which plugin they are talking about. 33 // process ID to identify which plugin they are talking about.
34 class PepperRendererConnection : public BrowserMessageFilter { 34 class PepperRendererConnection : public BrowserMessageFilter {
35 public: 35 public:
36 explicit PepperRendererConnection(int render_process_id); 36 explicit PepperRendererConnection(int render_process_id);
37 37
38 // BrowserMessageFilter overrides. 38 // BrowserMessageFilter overrides.
39 virtual bool OnMessageReceived(const IPC::Message& msg, 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
40 bool* message_was_ok) OVERRIDE;
41 40
42 private: 41 private:
43 virtual ~PepperRendererConnection(); 42 virtual ~PepperRendererConnection();
44 43
45 // Returns the host for the child process for the given |child_process_id|. 44 // Returns the host for the child process for the given |child_process_id|.
46 // If |child_process_id| is 0, returns the host owned by this 45 // If |child_process_id| is 0, returns the host owned by this
47 // PepperRendererConnection, which serves as the host for in-process plugins. 46 // PepperRendererConnection, which serves as the host for in-process plugins.
48 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const; 47 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const;
49 48
50 void OnMsgCreateResourceHostsFromHost( 49 void OnMsgCreateResourceHostsFromHost(
(...skipping 15 matching lines...) Expand all
66 // with the browser when running in-process but it means that plugin-specific 65 // with the browser when running in-process but it means that plugin-specific
67 // information (like the plugin name) won't be available. 66 // information (like the plugin name) won't be available.
68 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; 67 scoped_ptr<BrowserPpapiHostImpl> in_process_host_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); 69 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
71 }; 70 };
72 71
73 } // namespace content 72 } // namespace content
74 73
75 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 74 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698