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

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

Issue 2111010: fix chrome.tabs.onUpdated bugs, add browsertest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: more cr changes Created 10 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browser_event_router.h
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h
index 13c8eadbfee012769bfc4dfe146158742cca4458..f9b236750c536e4132c59e5fa79cd85ba8615e87 100644
--- a/chrome/browser/extensions/extension_browser_event_router.h
+++ b/chrome/browser/extensions/extension_browser_event_router.h
@@ -115,13 +115,6 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver,
// std::map<> by value.
TabEntry();
- // Create a new tab entry whose initial state is derived from the given
- // tab contents.
- explicit TabEntry(const TabContents* contents);
-
- // Returns the current state of the tab.
- ExtensionTabUtil::TabStatus state() const { return state_; }
-
// Update the load state of the tab based on its TabContents. Returns true
// if the state changed, false otherwise. Whether the state has changed or
// not is used to determine if events needs to be sent to extensions during
@@ -136,13 +129,11 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver,
DictionaryValue* DidNavigate(const TabContents* contents);
private:
- // Tab state used for last notification to extensions.
- ExtensionTabUtil::TabStatus state_;
-
- // Remember that the LOADING state has been captured, but not yet reported
- // because it is waiting on the navigation event to know what the
- // destination url is.
- bool pending_navigate_;
+ // Whether we are waiting to fire the 'complete' status change. This will
+ // occur the first time the TabContents stops loading after the
+ // NAV_ENTRY_COMMITTED was fired. The tab may go back into and out of the
+ // loading state subsequently, but we will ignore those changes.
+ bool complete_waiting_on_load_;
GURL url_;
};
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698