Chromium Code Reviews| Index: content/public/browser/browser_ppapi_host.h |
| diff --git a/content/public/browser/browser_ppapi_host.h b/content/public/browser/browser_ppapi_host.h |
| index 45f997ea06b7705f62594948466ffcecab9cbb83..f7625c9b08aeec5d3b8915f7e2c771cc1ab893e1 100644 |
| --- a/content/public/browser/browser_ppapi_host.h |
| +++ b/content/public/browser/browser_ppapi_host.h |
| @@ -34,6 +34,18 @@ namespace content { |
| // lives entirely on the I/O thread. |
| class CONTENT_EXPORT BrowserPpapiHost { |
| public: |
| + struct OnIdleChangeInstanceStruct { |
| + int render_process_id; |
| + int render_view_id; |
| + GURL document_url; |
| + }; |
| + typedef std::vector<OnIdleChangeInstanceStruct> OnIdleChangeInstanceData; |
| + typedef base::Callback< |
| + void (OnIdleChangeInstanceData intance_data, |
| + base::FilePath profile_data_directory, |
| + bool idle)> |
| + OnIdleChangeCallback; |
| + |
| // Creates a browser host and sets up an out-of-process proxy for an external |
| // pepper plugin process. |
| static BrowserPpapiHost* CreateExternalPluginProcess( |
| @@ -81,6 +93,9 @@ class CONTENT_EXPORT BrowserPpapiHost { |
| // Get the Document/Plugin URLs for the given PP_Instance. |
| virtual GURL GetDocumentURLForInstance(PP_Instance instance) = 0; |
| virtual GURL GetPluginURLForInstance(PP_Instance instance) = 0; |
| + |
| + // Set callback used when the plugin transitions in or out of an idle state. |
|
dmichael (off chromium)
2013/11/15 18:26:22
nit: This comment could be a little clearer.
"Set
scheib
2013/12/11 21:35:40
Done.
|
| + virtual void SetOnIdleChangeCallback(const OnIdleChangeCallback callback) = 0; |
| }; |
| } // namespace content |