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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 8343079: Don't close background pages if there is a pending response (callback). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only track in-flight events when lazy Created 9 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/renderer/extensions/extension_dispatcher.h
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index d6822ec154c9f49a025e82cc7132bbdec602b538..661e2bb669695ba5236bd742e1cec04833487b4d 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -81,6 +81,10 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
return webrequest_other_;
}
+ // If the extension is in fact idle, tell the browser process to close
+ // the background page.
+ void OnExtensionIdle(const std::string& extension_id);
+
private:
friend class RenderViewTest;

Powered by Google App Engine
This is Rietveld 408576698