Index: components/nacl/browser/nacl_browser_delegate.h |
diff --git a/components/nacl/browser/nacl_browser_delegate.h b/components/nacl/browser/nacl_browser_delegate.h |
index 0540f60d10997a8f24cf23eb419e60094987272f..a0313473eedbb4b510004e27cf8c4f7fb66abec9 100644 |
--- a/components/nacl/browser/nacl_browser_delegate.h |
+++ b/components/nacl/browser/nacl_browser_delegate.h |
@@ -8,6 +8,8 @@ |
#include <string> |
#include "base/callback_forward.h" |
+// Included because nested OnKeepaliveCallback class can't be forward declared. |
yzshen1
2013/12/13 21:23:15
nit: might be okay to remove this comment because
scheib
2013/12/14 00:07:41
Done.
|
+#include "content/public/browser/browser_ppapi_host.h" |
class GURL; |
@@ -21,10 +23,6 @@ class HostFactory; |
} |
} |
-namespace content { |
-class BrowserPpapiHost; |
-} |
- |
// Encapsulates the dependencies of NaCl code on chrome/, to avoid a direct |
// dependency on chrome/. |
class NaClBrowserDelegate { |
@@ -73,6 +71,10 @@ class NaClBrowserDelegate { |
// Returns whether NaCl application with this manifest URL should be debugged. |
virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) = 0; |
+ |
+ // Returns a callback that handles NaCl idle state transitions. |
+ virtual content::BrowserPpapiHost::OnKeepaliveCallback |
+ GetOnKeepaliveCallback() = 0; |
}; |
#endif // COMPONENTS_NACL_BROWSER_NACL_BROWSER_DELEGATE_H_ |