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

Side by Side Diff: components/autofill/core/browser/autofill_manager.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
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/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (form_structure.field(i)->section() == section && 122 if (form_structure.field(i)->section() == section &&
123 form.fields[i].is_autofilled) { 123 form.fields[i].is_autofilled) {
124 return true; 124 return true;
125 } 125 }
126 } 126 }
127 127
128 return false; 128 return false;
129 } 129 }
130 130
131 bool FormIsHTTPS(const FormStructure& form) { 131 bool FormIsHTTPS(const FormStructure& form) {
132 return form.source_url().SchemeIs(chrome::kHttpsScheme); 132 return form.source_url().SchemeIs(content::kHttpsScheme);
133 } 133 }
134 134
135 // Uses the existing personal data in |profiles| and |credit_cards| to determine 135 // Uses the existing personal data in |profiles| and |credit_cards| to determine
136 // possible field types for the |submitted_form|. This is potentially 136 // possible field types for the |submitted_form|. This is potentially
137 // expensive -- on the order of 50ms even for a small set of |stored_data|. 137 // expensive -- on the order of 50ms even for a small set of |stored_data|.
138 // Hence, it should not run on the UI thread -- to avoid locking up the UI -- 138 // Hence, it should not run on the UI thread -- to avoid locking up the UI --
139 // nor on the IO thread -- to avoid blocking IPC calls. 139 // nor on the IO thread -- to avoid blocking IPC calls.
140 void DeterminePossibleFieldTypesForUpload( 140 void DeterminePossibleFieldTypesForUpload(
141 const std::vector<AutofillProfile>& profiles, 141 const std::vector<AutofillProfile>& profiles,
142 const std::vector<CreditCard>& credit_cards, 142 const std::vector<CreditCard>& credit_cards,
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 1210
1211 void AutofillManager::UpdateInitialInteractionTimestamp( 1211 void AutofillManager::UpdateInitialInteractionTimestamp(
1212 const TimeTicks& interaction_timestamp) { 1212 const TimeTicks& interaction_timestamp) {
1213 if (initial_interaction_timestamp_.is_null() || 1213 if (initial_interaction_timestamp_.is_null() ||
1214 interaction_timestamp < initial_interaction_timestamp_) { 1214 interaction_timestamp < initial_interaction_timestamp_) {
1215 initial_interaction_timestamp_ = interaction_timestamp; 1215 initial_interaction_timestamp_ = interaction_timestamp;
1216 } 1216 }
1217 } 1217 }
1218 1218
1219 } // namespace autofill 1219 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.cc ('k') | content/browser/browser_url_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698