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

Unified Diff: chrome/browser/nacl_host/nacl_browser.cc

Issue 11236025: Test that debug stub works with browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 8 years, 2 months 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
Index: chrome/browser/nacl_host/nacl_browser.cc
===================================================================
--- chrome/browser/nacl_host/nacl_browser.cc (revision 163266)
+++ chrome/browser/nacl_host/nacl_browser.cc (working copy)
@@ -258,6 +258,25 @@
}
}
+void NaClBrowser::DebugStubNewPortAllocated(int port) {
+ content::BrowserThread::PostTask(
+ content::BrowserThread::IO,
+ FROM_HERE,
+ base::Bind(debug_stub_port_listener_, port));
+}
+
+bool NaClBrowser::HasDebugStubPortListener() {
+ return !debug_stub_port_listener_.is_null();
+}
+
+void NaClBrowser::SetDebugStubPortListener(base::Callback<void(int)> listener) {
+ debug_stub_port_listener_ = listener;
+}
+
+void NaClBrowser::ClearDebugStubPortListener() {
+ debug_stub_port_listener_.Reset();
+}
+
void NaClBrowser::InitValidationCacheFilePath() {
// Determine where the validation cache resides in the file system. It
// exists in Chrome's cache directory and is not tied to any specific

Powered by Google App Engine
This is Rietveld 408576698