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

Unified Diff: chrome/browser/extensions/extension_tab_id_map.cc

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some tests, fixes 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/extensions/extension_tab_id_map.cc
diff --git a/chrome/browser/extensions/extension_tab_id_map.cc b/chrome/browser/extensions/extension_tab_id_map.cc
index e3c92e1a971930f91c894a2c1b338614a082b8d9..e5db192f4424af5eeaa13e3f27b35bbe02476b74 100644
--- a/chrome/browser/extensions/extension_tab_id_map.cc
+++ b/chrome/browser/extensions/extension_tab_id_map.cc
@@ -186,3 +186,17 @@ bool ExtensionTabIdMap::GetTabAndWindowId(
}
return false;
}
+
+bool ExtensionTabIdMap::GetProcessAndRoutingId(
+ int tab_id, int* render_process_host_id, int* routing_id) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ for (TabAndWindowIdMap::iterator iter = map_.begin(); iter != map_.end();
+ iter++) {
Alpha Left Google 2012/10/04 20:52:01 indentation is wrong here
justinlin 2012/10/08 09:58:31 Done.
+ if (iter->second.first == tab_id) {
+ *render_process_host_id = iter->first.first;
+ *routing_id = iter->first.second;
+ return true;
+ }
+ }
+ return false;
+}

Powered by Google App Engine
This is Rietveld 408576698