| OLD | NEW |
| 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 CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CHROME_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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "chrome/browser/browser_child_process_host.h" | 13 #include "content/browser/browser_child_process_host.h" |
| 14 | 14 |
| 15 class PpapiPluginProcessHost : public BrowserChildProcessHost { | 15 class PpapiPluginProcessHost : public BrowserChildProcessHost { |
| 16 public: | 16 public: |
| 17 class Client { | 17 class Client { |
| 18 public: | 18 public: |
| 19 // Gets the information about the renderer that's requesting the channel. | 19 // Gets the information about the renderer that's requesting the channel. |
| 20 virtual void GetChannelInfo(base::ProcessHandle* renderer_handle, | 20 virtual void GetChannelInfo(base::ProcessHandle* renderer_handle, |
| 21 int* renderer_id) = 0; | 21 int* renderer_id) = 0; |
| 22 | 22 |
| 23 // Called when the channel is asynchronously opened to the plugin or on | 23 // Called when the channel is asynchronously opened to the plugin or on |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Channel requests that we have already sent to the plugin process, but | 67 // Channel requests that we have already sent to the plugin process, but |
| 68 // haven't heard back about yet. | 68 // haven't heard back about yet. |
| 69 std::queue<Client*> sent_requests_; | 69 std::queue<Client*> sent_requests_; |
| 70 | 70 |
| 71 // Path to the plugin library. | 71 // Path to the plugin library. |
| 72 FilePath plugin_path_; | 72 FilePath plugin_path_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 74 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 77 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
| 78 | 78 |
| OLD | NEW |