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

Side by Side Diff: chrome/browser/autofill/autofill_manager.cc

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use system srp and mpi libs, not local copies Created 9 years, 8 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/autofill/autofill_manager.h" 5 #include "chrome/browser/autofill/autofill_manager.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // We found a matching field in the |form_structure| so we 199 // We found a matching field in the |form_structure| so we
200 // proceed to the next |form| field, and the next |form_structure|. 200 // proceed to the next |form| field, and the next |form_structure|.
201 ++i; 201 ++i;
202 } 202 }
203 203
204 return false; 204 return false;
205 } 205 }
206 206
207 bool FormIsHTTPS(FormStructure* form) { 207 bool FormIsHTTPS(FormStructure* form) {
208 return form->source_url().SchemeIs(chrome::kHttpsScheme); 208 return form->source_url().SchemeIs(chrome::kHttpsScheme) ||
209 form->source_url().SchemeIs(chrome::kHttpsvScheme);
209 } 210 }
210 211
211 } // namespace 212 } // namespace
212 213
213 AutoFillManager::AutoFillManager(TabContents* tab_contents) 214 AutoFillManager::AutoFillManager(TabContents* tab_contents)
214 : tab_contents_(tab_contents), 215 : tab_contents_(tab_contents),
215 personal_data_(NULL), 216 personal_data_(NULL),
216 download_manager_(tab_contents_->profile()), 217 download_manager_(tab_contents_->profile()),
217 disable_download_manager_requests_(false), 218 disable_download_manager_requests_(false),
218 metric_logger_(new AutoFillMetrics), 219 metric_logger_(new AutoFillMetrics),
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 return std::string(); 1018 return std::string();
1018 1019
1019 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id); 1020 std::map<int, std::string>::const_iterator iter = id_guid_map_.find(id);
1020 if (iter == id_guid_map_.end()) { 1021 if (iter == id_guid_map_.end()) {
1021 NOTREACHED(); 1022 NOTREACHED();
1022 return std::string(); 1023 return std::string();
1023 } 1024 }
1024 1025
1025 return iter->second; 1026 return iter->second;
1026 } 1027 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698