| OLD | NEW |
| 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_BROKER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PPAPI_BROKER_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_PPAPI_BROKER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PPAPI_BROKER_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // The client pointer must remain valid until its callback is issued. | 49 // The client pointer must remain valid until its callback is issued. |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 | 52 |
| 53 void RequestPpapiBrokerChannel(Client* client); | 53 void RequestPpapiBrokerChannel(Client* client); |
| 54 | 54 |
| 55 virtual bool CanShutdown(); | 55 virtual bool CanShutdown(); |
| 56 virtual void OnProcessLaunched(); | 56 virtual void OnProcessLaunched(); |
| 57 | 57 |
| 58 virtual bool OnMessageReceived(const IPC::Message& msg); | 58 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 59 virtual void OnChannelConnected(int32 peer_pid); | 59 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 60 virtual void OnChannelError(); | 60 virtual void OnChannelError() OVERRIDE; |
| 61 | 61 |
| 62 void CancelRequests(); | 62 void CancelRequests(); |
| 63 | 63 |
| 64 // IPC message handlers. | 64 // IPC message handlers. |
| 65 void OnRendererPpapiBrokerChannelCreated(const IPC::ChannelHandle& handle); | 65 void OnRendererPpapiBrokerChannelCreated(const IPC::ChannelHandle& handle); |
| 66 | 66 |
| 67 // Channel requests that we are waiting to send to the plugin process once | 67 // Channel requests that we are waiting to send to the plugin process once |
| 68 // the channel is opened. | 68 // the channel is opened. |
| 69 std::vector<Client*> pending_requests_; | 69 std::vector<Client*> pending_requests_; |
| 70 | 70 |
| 71 // Channel requests that we have already sent to the plugin process, but | 71 // Channel requests that we have already sent to the plugin process, but |
| 72 // haven't heard back about yet. | 72 // haven't heard back about yet. |
| 73 std::queue<Client*> sent_requests_; | 73 std::queue<Client*> sent_requests_; |
| 74 | 74 |
| 75 // Path to the plugin library. | 75 // Path to the plugin library. |
| 76 FilePath broker_path_; | 76 FilePath broker_path_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(PpapiBrokerProcessHost); | 78 DISALLOW_COPY_AND_ASSIGN(PpapiBrokerProcessHost); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // CONTENT_BROWSER_PPAPI_BROKER_PROCESS_HOST_H_ | 81 #endif // CONTENT_BROWSER_PPAPI_BROKER_PROCESS_HOST_H_ |
| OLD | NEW |