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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.h

Issue 10831313: Removing web_contents from AutofillExternalDelegateGtk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/ui/gtk/autofill/autofill_external_delegate_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_external_delegate.h
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h
index 10f467ef367b346e506a3e7ecb33c5ab1f36dfa4..8d853ad38b53f2eb69142993eeb6b807a3a103e8 100644
--- a/chrome/browser/autofill/autofill_external_delegate.h
+++ b/chrome/browser/autofill/autofill_external_delegate.h
@@ -21,6 +21,10 @@ namespace gfx {
class Rect;
}
+namespace content {
+class WebContents;
+}
+
// TODO(csharp): A lot of the logic in this class is copied from autofillagent.
// Once Autofill is moved out of WebKit this class should be the only home for
// this logic. See http://crbug.com/51644
@@ -133,6 +137,9 @@ class AutofillExternalDelegate {
// Return the profile that this autofill delegate is currently working with.
Profile* profile() { return tab_contents_->profile(); }
+ // Return the web_contents assoicated with this delegate.
+ content::WebContents* web_contents() { return tab_contents_->web_contents(); }
+
private:
// Fills the form with the Autofill data corresponding to |unique_id|.
// If |is_preview| is true then this is just a preview to show the user what
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/autofill/autofill_external_delegate_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698