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

Side by Side Diff: chrome/browser/ppapi_plugin_process_host.h

Issue 5701004: Rename ResourceMessageFilter to RenderMessageFilter, since that's what it act... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/plugin_service.h ('k') | chrome/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "chrome/browser/browser_child_process_host.h" 11 #include "chrome/browser/browser_child_process_host.h"
12 12
13 class ResourceMessageFilter; 13 class RenderMessageFilter;
14 14
15 namespace IPC { 15 namespace IPC {
16 struct ChannelHandle; 16 struct ChannelHandle;
17 class Message; 17 class Message;
18 } 18 }
19 19
20 class PpapiPluginProcessHost : public BrowserChildProcessHost { 20 class PpapiPluginProcessHost : public BrowserChildProcessHost {
21 public: 21 public:
22 explicit PpapiPluginProcessHost(ResourceMessageFilter* filter); 22 explicit PpapiPluginProcessHost(RenderMessageFilter* filter);
23 virtual ~PpapiPluginProcessHost(); 23 virtual ~PpapiPluginProcessHost();
24 24
25 void Init(const FilePath& path, IPC::Message* reply_msg); 25 void Init(const FilePath& path, IPC::Message* reply_msg);
26 26
27 private: 27 private:
28 virtual bool CanShutdown() { return true; } 28 virtual bool CanShutdown() { return true; }
29 virtual void OnProcessLaunched(); 29 virtual void OnProcessLaunched();
30 virtual URLRequestContext* GetRequestContext( 30 virtual URLRequestContext* GetRequestContext(
31 uint32 request_id, 31 uint32 request_id,
32 const ViewHostMsg_Resource_Request& request_data); 32 const ViewHostMsg_Resource_Request& request_data);
33 33
34 virtual void OnMessageReceived(const IPC::Message& msg); 34 virtual void OnMessageReceived(const IPC::Message& msg);
35 virtual void OnChannelConnected(int32 peer_pid); 35 virtual void OnChannelConnected(int32 peer_pid);
36 virtual void OnChannelError(); 36 virtual void OnChannelError();
37 37
38 // IPC message handlers. 38 // IPC message handlers.
39 void OnPluginLoaded(const IPC::ChannelHandle& handle); 39 void OnPluginLoaded(const IPC::ChannelHandle& handle);
40 40
41 // Sends the reply_msg_ to the renderer with the given channel info. 41 // Sends the reply_msg_ to the renderer with the given channel info.
42 void ReplyToRenderer(base::ProcessHandle plugin_handle, 42 void ReplyToRenderer(base::ProcessHandle plugin_handle,
43 const IPC::ChannelHandle& channel_handle); 43 const IPC::ChannelHandle& channel_handle);
44 44
45 ResourceMessageFilter* filter_; 45 RenderMessageFilter* filter_;
46 46
47 // Path to the plugin library. 47 // Path to the plugin library.
48 FilePath plugin_path_; 48 FilePath plugin_path_;
49 49
50 // When we're waiting for initialization of the plugin, this contains the 50 // When we're waiting for initialization of the plugin, this contains the
51 // reply message for the renderer to tell it that it can continue. 51 // reply message for the renderer to tell it that it can continue.
52 scoped_ptr<IPC::Message> reply_msg_; 52 scoped_ptr<IPC::Message> reply_msg_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); 54 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 57 #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
58 58
OLDNEW
« no previous file with comments | « chrome/browser/plugin_service.h ('k') | chrome/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698