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

Side by Side Diff: components/autofill/content/renderer/autofill_agent.cc

Issue 23112033: content: Move kHttpsScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/utils.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/renderer/autofill_agent.h" 5 #include "components/autofill/content/renderer/autofill_agent.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 void AutofillAgent::DidChangeScrollOffset(WebKit::WebFrame*) { 315 void AutofillAgent::DidChangeScrollOffset(WebKit::WebFrame*) {
316 HideAutofillUI(); 316 HideAutofillUI();
317 } 317 }
318 318
319 void AutofillAgent::didRequestAutocomplete(WebKit::WebFrame* frame, 319 void AutofillAgent::didRequestAutocomplete(WebKit::WebFrame* frame,
320 const WebFormElement& form) { 320 const WebFormElement& form) {
321 GURL url(frame->document().url()); 321 GURL url(frame->document().url());
322 content::SSLStatus ssl_status = render_view()->GetSSLStatusOfFrame(frame); 322 content::SSLStatus ssl_status = render_view()->GetSSLStatusOfFrame(frame);
323 FormData form_data; 323 FormData form_data;
324 if (!in_flight_request_form_.isNull() || 324 if (!in_flight_request_form_.isNull() ||
325 (url.SchemeIs(chrome::kHttpsScheme) && 325 (url.SchemeIs(content::kHttpsScheme) &&
326 (net::IsCertStatusError(ssl_status.cert_status) || 326 (net::IsCertStatusError(ssl_status.cert_status) ||
327 net::IsCertStatusMinorError(ssl_status.cert_status))) || 327 net::IsCertStatusMinorError(ssl_status.cert_status))) ||
328 !WebFormElementToFormData(form, 328 !WebFormElementToFormData(form,
329 WebFormControlElement(), 329 WebFormControlElement(),
330 REQUIRE_AUTOCOMPLETE, 330 REQUIRE_AUTOCOMPLETE,
331 EXTRACT_OPTIONS, 331 EXTRACT_OPTIONS,
332 &form_data, 332 &form_data,
333 NULL)) { 333 NULL)) {
334 WebFormElement(form).finishRequestAutocomplete( 334 WebFormElement(form).finishRequestAutocomplete(
335 WebFormElement::AutocompleteResultErrorDisabled); 335 WebFormElement::AutocompleteResultErrorDisabled);
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 if (!forms.empty()) { 780 if (!forms.empty()) {
781 if (click_timer_.IsRunning()) 781 if (click_timer_.IsRunning())
782 click_timer_.Stop(); 782 click_timer_.Stop();
783 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms, 783 Send(new AutofillHostMsg_FormsSeen(routing_id(), forms,
784 forms_seen_timestamp_, 784 forms_seen_timestamp_,
785 state)); 785 state));
786 } 786 }
787 } 787 }
788 788
789 } // namespace autofill 789 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome_frame/utils.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698