Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: components/nacl/browser/nacl_browser_delegate.h

Issue 105873003: Superset of Nacl Keepalive patch & tests - NOT FOR LANDING DIRECTLY. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..30bf467581a52fd1262895561ec2f53c7422ced4 100644
--- a/components/nacl/browser/nacl_browser_delegate.h
+++ b/components/nacl/browser/nacl_browser_delegate.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/callback_forward.h"
+#include "content/public/browser/browser_ppapi_host.h"
class GURL;
@@ -21,10 +22,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 +70,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_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698