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

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

Issue 9225010: Fix callback for chrome.tabs.update with javascript URLs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 11 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_tabs_module.h
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h
index 944de1c7382c2a8f044a405083464ac82cf22337..24d4d973de3b822c7e8d9f69b12bd8edbba518ad 100644
--- a/chrome/browser/extensions/extension_tabs_module.h
+++ b/chrome/browser/extensions/extension_tabs_module.h
@@ -18,11 +18,13 @@
class BackingStore;
class SkBitmap;
-
+class TabStripModel;
namespace base {
class DictionaryValue;
} // namespace base
-
+namespace content {
+class WebContents;
+} // namespace content
// Windows
class GetWindowFunction : public SyncExtensionFunction {
virtual ~GetWindowFunction() {}
@@ -116,6 +118,10 @@ class UpdateTabFunction : public AsyncExtensionFunction,
void OnExecuteCodeFinished(int request_id,
bool success,
const std::string& error);
+ void PopulateResult();
+ content::WebContents* web_contents_;
+ TabStripModel* tab_strip_;
+ int tab_index_;
DECLARE_EXTENSION_FUNCTION_NAME("tabs.update")
};
class MoveTabsFunction : public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698