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_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // IPC::ChannelProxy::MessageFilter. | 92 // IPC::ChannelProxy::MessageFilter. |
93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
94 | 94 |
95 void OnHostDestroyed(); | 95 void OnHostDestroyed(); |
96 | 96 |
97 private: | 97 private: |
98 virtual ~HostMessageFilter(); | 98 virtual ~HostMessageFilter(); |
99 | 99 |
100 void OnKeepalive(); | 100 void OnKeepalive(); |
| 101 void OnHostMsgLogInterfaceUsage(int hash) const; |
101 | 102 |
102 // Non owning pointers cleared in OnHostDestroyed() | 103 // Non owning pointers cleared in OnHostDestroyed() |
103 ppapi::host::PpapiHost* ppapi_host_; | 104 ppapi::host::PpapiHost* ppapi_host_; |
104 BrowserPpapiHostImpl* browser_ppapi_host_impl_; | 105 BrowserPpapiHostImpl* browser_ppapi_host_impl_; |
105 }; | 106 }; |
106 | 107 |
107 // Reports plugin activity to the callback set with SetOnKeepaliveCallback. | 108 // Reports plugin activity to the callback set with SetOnKeepaliveCallback. |
108 void OnKeepalive(); | 109 void OnKeepalive(); |
109 | 110 |
110 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_; | 111 scoped_ptr<ppapi::host::PpapiHost> ppapi_host_; |
(...skipping 19 matching lines...) Expand all Loading... |
130 scoped_refptr<HostMessageFilter> message_filter_; | 131 scoped_refptr<HostMessageFilter> message_filter_; |
131 | 132 |
132 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; | 133 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace content | 138 } // namespace content |
138 | 139 |
139 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 140 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |