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

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

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_renderer_connection.h » ('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) 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_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 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 static void FindByName(const string16& name, 100 static void FindByName(const string16& name,
101 std::vector<PpapiPluginProcessHost*>* hosts); 101 std::vector<PpapiPluginProcessHost*>* hosts);
102 102
103 // IPC::Sender implementation: 103 // IPC::Sender implementation:
104 virtual bool Send(IPC::Message* message) OVERRIDE; 104 virtual bool Send(IPC::Message* message) OVERRIDE;
105 105
106 // Opens a new channel to the plugin. The client will be notified when the 106 // Opens a new channel to the plugin. The client will be notified when the
107 // channel is ready or if there's an error. 107 // channel is ready or if there's an error.
108 void OpenChannelToPlugin(Client* client); 108 void OpenChannelToPlugin(Client* client);
109 109
110 BrowserPpapiHostImpl* host_impl() { return host_impl_.get(); }
111 const BrowserChildProcessHostImpl* process() { return process_.get(); }
110 const base::FilePath& plugin_path() const { return plugin_path_; } 112 const base::FilePath& plugin_path() const { return plugin_path_; }
111 const base::FilePath& profile_data_directory() const { 113 const base::FilePath& profile_data_directory() const {
112 return profile_data_directory_; 114 return profile_data_directory_;
113 } 115 }
114 116
115 // The client pointer must remain valid until its callback is issued. 117 // The client pointer must remain valid until its callback is issued.
116 118
117 private: 119 private:
118 class PluginNetworkObserver; 120 class PluginNetworkObserver;
119 121
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 public: 189 public:
188 PpapiBrokerProcessHostIterator() 190 PpapiBrokerProcessHostIterator()
189 : BrowserChildProcessHostTypeIterator< 191 : BrowserChildProcessHostTypeIterator<
190 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} 192 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {}
191 }; 193 };
192 194
193 } // namespace content 195 } // namespace content
194 196
195 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 197 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
196 198
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_renderer_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698