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

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

Issue 545973002: Cleaning up capture_web_contents_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 6 years, 3 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/chrome_extension_function_details.h
diff --git a/chrome/browser/extensions/chrome_extension_function_details.h b/chrome/browser/extensions/chrome_extension_function_details.h
index 6e1bf92cc27364e4935eb7935b55db1edbf7aacb..79c5c09e16ea967ca80d5ccdedc62f522e28bcae 100644
--- a/chrome/browser/extensions/chrome_extension_function_details.h
+++ b/chrome/browser/extensions/chrome_extension_function_details.h
@@ -62,6 +62,10 @@ class ChromeExtensionFunctionDetails {
// contents then defaults to the foremost one.
content::WebContents* GetAssociatedWebContents();
+ // Returns a pointer to the associated UIThreadExtensionFunction
+ UIThreadExtensionFunction* function() { return function_; }
+ const UIThreadExtensionFunction* function() const { return function_; }
+
private:
// The function for which these details have been created. Must outlive the
// ChromeExtensionFunctionDetails instance.
« no previous file with comments | « chrome/browser/extensions/api/web_view/web_view_internal_api.cc ('k') | chrome/browser/extensions/extension_tab_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698