| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |