| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual GURL GetDocumentURLForInstance(PP_Instance instance) OVERRIDE; | 55 virtual GURL GetDocumentURLForInstance(PP_Instance instance) OVERRIDE; |
| 56 virtual GURL GetPluginURLForInstance(PP_Instance instance) OVERRIDE; | 56 virtual GURL GetPluginURLForInstance(PP_Instance instance) OVERRIDE; |
| 57 virtual void SetOnKeepaliveCallback( | 57 virtual void SetOnKeepaliveCallback( |
| 58 const BrowserPpapiHost::OnKeepaliveCallback& callback) OVERRIDE; | 58 const BrowserPpapiHost::OnKeepaliveCallback& callback) OVERRIDE; |
| 59 | 59 |
| 60 | 60 |
| 61 void set_plugin_process_handle(base::ProcessHandle handle) { | 61 void set_plugin_process_handle(base::ProcessHandle handle) { |
| 62 plugin_process_handle_ = handle; | 62 plugin_process_handle_ = handle; |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool in_process() const { return in_process_; } | |
| 66 bool external_plugin() const { return external_plugin_; } | 65 bool external_plugin() const { return external_plugin_; } |
| 67 | 66 |
| 68 // These two functions are notifications that an instance has been created | 67 // These two functions are notifications that an instance has been created |
| 69 // or destroyed. They allow us to maintain a mapping of PP_Instance to data | 68 // or destroyed. They allow us to maintain a mapping of PP_Instance to data |
| 70 // associated with the instance including view IDs in the browser process. | 69 // associated with the instance including view IDs in the browser process. |
| 71 void AddInstance(PP_Instance instance, | 70 void AddInstance(PP_Instance instance, |
| 72 const PepperRendererInstanceData& instance_data); | 71 const PepperRendererInstanceData& instance_data); |
| 73 void DeleteInstance(PP_Instance instance); | 72 void DeleteInstance(PP_Instance instance); |
| 74 | 73 |
| 75 scoped_refptr<IPC::ChannelProxy::MessageFilter> message_filter() { | 74 scoped_refptr<IPC::ChannelProxy::MessageFilter> message_filter() { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 scoped_refptr<HostMessageFilter> message_filter_; | 131 scoped_refptr<HostMessageFilter> message_filter_; |
| 133 | 132 |
| 134 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; | 133 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; |
| 135 | 134 |
| 136 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 } // namespace content | 138 } // namespace content |
| 140 | 139 |
| 141 #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 |