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

Unified Diff: chrome/browser/renderer_host/render_view_host.h

Issue 4591001: Display a warning when autofill is disabled for a website. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile on ChromeOS... Created 10 years, 1 month 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/renderer_host/render_view_host.h
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index 97d1f5b05a82270c52914ca5bbfb769e73b26a61..ba7f552cf779114e558f63946dc225e9bd6da838 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -411,18 +411,18 @@ class RenderViewHost : public RenderWidgetHost {
// set to false when creating a renderer-initiated window via window.open.
void AllowScriptToClose(bool visible);
+ // Resets the stored AutoFill state.
+ void ResetAutoFillState(int query_id);
+
// Called by the AutoFillManager when the list of suggestions is ready.
- void AutoFillSuggestionsReturned(
- int query_id,
- const std::vector<string16>& values,
- const std::vector<string16>& labels,
- const std::vector<string16>& icons,
- const std::vector<int>& unique_ids);
+ void AutoFillSuggestionsReturned(const std::vector<string16>& values,
+ const std::vector<string16>& labels,
+ const std::vector<string16>& icons,
+ const std::vector<int>& unique_ids);
// Called by the AutocompleteHistoryManager when the list of suggestions is
// ready.
void AutocompleteSuggestionsReturned(
- int query_id,
const std::vector<string16>& suggestions);
// Called by the AutoFillManager when the FormData has been filled out.
@@ -802,12 +802,14 @@ class RenderViewHost : public RenderWidgetHost {
// what process type we use.
bool is_extension_process_;
+ // TODO(isherman): Consider splitting these off into a helper class.
// AutoFill and Autocomplete suggestions. We accumulate these separately and
// send them back to the renderer together.
std::vector<string16> autofill_values_;
std::vector<string16> autofill_labels_;
std::vector<string16> autofill_icons_;
std::vector<int> autofill_unique_ids_;
+ int autofill_query_id_;
// Whether the accessibility tree should be saved, for unit testing.
bool save_accessibility_tree_for_testing_;
« no previous file with comments | « chrome/browser/chromeos/login/account_creation_view.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698