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

Unified Diff: chrome/browser/extensions/browser_event_router.h

Issue 17382005: Unbreak tabs.onRemove extension API in face of fast tab closure Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/browser_event_router.h
diff --git a/chrome/browser/extensions/browser_event_router.h b/chrome/browser/extensions/browser_event_router.h
index f424f57a66390043691581e8e697718eed15ebde..0f468e1f8923edda747fa75399f7a0293fd19e6f 100644
--- a/chrome/browser/extensions/browser_event_router.h
+++ b/chrome/browser/extensions/browser_event_router.h
@@ -130,6 +130,15 @@ class BrowserEventRouter : public TabStripModelObserver,
void DispatchTabUpdatedEvent(content::WebContents* contents,
scoped_ptr<DictionaryValue> changed_properties);
+ void DispatchTabDetached(content::WebContents* contents, int index);
+
+ // Send Tab removed event and stop listening for notifications on said
+ // |contents|.
+ void DispatchTabRemovedAndUnregisterNotifications(
+ content::WebContents* contents,
+ int tab_id,
+ bool window_closing);
+
// Called to dispatch a deprecated style page action click event that was
// registered like:
// chrome.pageActions["name"].addListener(function(actionId, info){})
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_event_router.cc » ('j') | content/public/browser/web_contents.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698