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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const FilePath& plugin_path() const { return plugin_path_; } | 62 const FilePath& plugin_path() const { return plugin_path_; } |
63 | 63 |
64 // The client pointer must remain valid until its callback is issued. | 64 // The client pointer must remain valid until its callback is issued. |
65 | 65 |
66 private: | 66 private: |
67 void RequestPluginChannel(Client* client); | 67 void RequestPluginChannel(Client* client); |
68 | 68 |
69 virtual bool CanShutdown(); | 69 virtual bool CanShutdown(); |
70 virtual void OnProcessLaunched(); | 70 virtual void OnProcessLaunched(); |
71 | 71 |
72 virtual bool OnMessageReceived(const IPC::Message& msg); | 72 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
73 virtual void OnChannelConnected(int32 peer_pid); | 73 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
74 virtual void OnChannelError(); | 74 virtual void OnChannelError() OVERRIDE; |
75 | 75 |
76 void CancelRequests(); | 76 void CancelRequests(); |
77 | 77 |
78 // IPAddressObserver implementation. | 78 // IPAddressObserver implementation. |
79 virtual void OnIPAddressChanged() OVERRIDE; | 79 virtual void OnIPAddressChanged() OVERRIDE; |
80 | 80 |
81 // OnlineStateObserver implementation. | 81 // OnlineStateObserver implementation. |
82 virtual void OnOnlineStateChanged(bool online) OVERRIDE; | 82 virtual void OnOnlineStateChanged(bool online) OVERRIDE; |
83 | 83 |
84 // IPC message handlers. | 84 // IPC message handlers. |
(...skipping 11 matching lines...) Expand all Loading... |
96 std::queue<Client*> sent_requests_; | 96 std::queue<Client*> sent_requests_; |
97 | 97 |
98 // Path to the plugin library. | 98 // Path to the plugin library. |
99 FilePath plugin_path_; | 99 FilePath plugin_path_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); | 101 DISALLOW_COPY_AND_ASSIGN(PpapiPluginProcessHost); |
102 }; | 102 }; |
103 | 103 |
104 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ | 104 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ |
105 | 105 |
OLD | NEW |