summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 15:15:58 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 15:15:58 +0000
commit9f76c1e726080fd20b92033fce1850e4c53f1537 (patch)
treebe58ff5002f946114f58882b436653a56304fdea /chrome/browser/autofill
parentce428fda6682d5dd646ea3a7cb459684303efa4e (diff)
downloadchromium_src-9f76c1e726080fd20b92033fce1850e4c53f1537.zip
chromium_src-9f76c1e726080fd20b92033fce1850e4c53f1537.tar.gz
chromium_src-9f76c1e726080fd20b92033fce1850e4c53f1537.tar.bz2
Extract minimal RenderViewHost interface for embedders, leaving
RenderViewHostImpl for content. TBR=darin@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/9473001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r--chrome/browser/autofill/autofill_browsertest.cc2
-rw-r--r--chrome/browser/autofill/autofill_external_delegate.cc10
-rw-r--r--chrome/browser/autofill/autofill_manager.cc9
3 files changed, 11 insertions, 10 deletions
diff --git a/chrome/browser/autofill/autofill_browsertest.cc b/chrome/browser/autofill/autofill_browsertest.cc
index 99b9e4f..3986abb 100644
--- a/chrome/browser/autofill/autofill_browsertest.cc
+++ b/chrome/browser/autofill/autofill_browsertest.cc
@@ -690,7 +690,7 @@ IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterTranslate) {
ASSERT_NO_FATAL_FAILURE(ui_test_utils::NavigateToURL(browser(), url));
// Get translation bar.
- render_view_host()->OnMessageReceived(
+ render_view_host()->OnMessageReceivedForTesting(
ChromeViewHostMsg_TranslateLanguageDetermined(0, "ja", true));
TranslateInfoBarDelegate* infobar =
browser()->GetSelectedTabContentsWrapper()->infobar_tab_helper()->
diff --git a/chrome/browser/autofill/autofill_external_delegate.cc b/chrome/browser/autofill/autofill_external_delegate.cc
index efd6468..0afa89f 100644
--- a/chrome/browser/autofill/autofill_external_delegate.cc
+++ b/chrome/browser/autofill/autofill_external_delegate.cc
@@ -159,13 +159,13 @@ void AutofillExternalDelegate::DidAcceptAutofillSuggestions(
// User selected 'Clear form'.
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
- host->Send(new AutofillMsg_ClearForm(host->routing_id()));
+ host->Send(new AutofillMsg_ClearForm(host->GetRoutingID()));
} else if (!unique_id) {
// User selected an Autocomplete entry, so we fill directly.
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
host->Send(new AutofillMsg_SetNodeText(
- host->routing_id(),
+ host->GetRoutingID(),
value));
} else {
FillAutofillFormData(unique_id, false);
@@ -177,7 +177,7 @@ void AutofillExternalDelegate::DidAcceptAutofillSuggestions(
void AutofillExternalDelegate::ClearPreviewedForm() {
RenderViewHost* host =
tab_contents_wrapper_->web_contents()->GetRenderViewHost();
- host->Send(new AutofillMsg_ClearPreviewedForm(host->routing_id()));
+ host->Send(new AutofillMsg_ClearPreviewedForm(host->GetRoutingID()));
}
void AutofillExternalDelegate::HideAutofillPopup() {
@@ -194,10 +194,10 @@ void AutofillExternalDelegate::FillAutofillFormData(int unique_id,
if (is_preview) {
host->Send(new AutofillMsg_SetAutofillActionPreview(
- host->routing_id()));
+ host->GetRoutingID()));
} else {
host->Send(new AutofillMsg_SetAutofillActionFill(
- host->routing_id()));
+ host->GetRoutingID()));
}
// Fill the values for the whole form.
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc
index 66bd938..f921957 100644
--- a/chrome/browser/autofill/autofill_manager.cc
+++ b/chrome/browser/autofill/autofill_manager.cc
@@ -585,7 +585,7 @@ void AutofillManager::OnFillAutofillFormData(int query_id,
}
}
- host->Send(new AutofillMsg_FormDataFilled(host->routing_id(), query_id,
+ host->Send(new AutofillMsg_FormDataFilled(host->GetRoutingID(), query_id,
result));
return;
}
@@ -635,7 +635,7 @@ void AutofillManager::OnFillAutofillFormData(int query_id,
autofilled_form_signatures_.pop_back();
host->Send(new AutofillMsg_FormDataFilled(
- host->routing_id(), query_id, result));
+ host->GetRoutingID(), query_id, result));
}
void AutofillManager::OnShowAutofillDialog() {
@@ -724,8 +724,9 @@ void AutofillManager::SendAutofillTypePredictions(
std::vector<FormDataPredictions> type_predictions;
FormStructure::GetFieldTypePredictions(forms, &type_predictions);
- host->Send(new AutofillMsg_FieldTypePredictionsAvailable(host->routing_id(),
- type_predictions));
+ host->Send(
+ new AutofillMsg_FieldTypePredictionsAvailable(host->GetRoutingID(),
+ type_predictions));
}
void AutofillManager::ImportFormData(const FormStructure& submitted_form) {