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

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

Issue 8774040: Don't make classes derive from ChildProcessHost, and instead have them use it through composition... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // You must call Init before doing anything else. 75 // You must call Init before doing anything else.
76 PpapiPluginProcessHost(net::HostResolver* host_resolver); 76 PpapiPluginProcessHost(net::HostResolver* host_resolver);
77 PpapiPluginProcessHost(); 77 PpapiPluginProcessHost();
78 78
79 // Actually launches the process with the given plugin info. Returns true 79 // Actually launches the process with the given plugin info. Returns true
80 // on success (the process was spawned). 80 // on success (the process was spawned).
81 bool Init(const content::PepperPluginInfo& info); 81 bool Init(const content::PepperPluginInfo& info);
82 82
83 void RequestPluginChannel(Client* client); 83 void RequestPluginChannel(Client* client);
84 84
85 virtual bool CanShutdown() OVERRIDE;
86 virtual void OnProcessLaunched() OVERRIDE; 85 virtual void OnProcessLaunched() OVERRIDE;
87 86
88 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 87 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
89 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 88 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
90 virtual void OnChannelError() OVERRIDE; 89 virtual void OnChannelError() OVERRIDE;
91 90
92 void CancelRequests(); 91 void CancelRequests();
93 92
94 // IPC message handlers. 93 // IPC message handlers.
95 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle); 94 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
(...skipping 18 matching lines...) Expand all
114 const bool is_broker_; 113 const bool is_broker_;
115 114
116 // The unique id created for the process. 115 // The unique id created for the process.
117 int process_id_; 116 int process_id_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); 118 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost);
120 }; 119 };
121 120
122 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 121 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
123 122
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698