| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_download.h" | 5 #include "chrome/browser/autofill/autofill_download.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "chrome/browser/autofill/autofill_metrics.h" | 15 #include "chrome/browser/autofill/autofill_metrics.h" |
| 16 #include "chrome/browser/autofill/autofill_xml_parser.h" | 16 #include "chrome/browser/autofill/autofill_xml_parser.h" |
| 17 #include "chrome/browser/autofill/form_structure.h" | 17 #include "chrome/browser/autofill/form_structure.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
| 21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
| 22 #include "net/http/http_response_headers.h" | 22 #include "net/http/http_response_headers.h" |
| 23 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" | 23 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 const char kAutofillQueryServerRequestUrl[] = | 26 const char kAutofillQueryServerRequestUrl[] = |
| 27 "http://toolbarqueries.clients.google.com:80/tbproxy/af/query"; | 27 "https://toolbarqueries.google.com/tbproxy/af/query"; |
| 28 const char kAutofillUploadServerRequestUrl[] = | 28 const char kAutofillUploadServerRequestUrl[] = |
| 29 "http://toolbarqueries.clients.google.com:80/tbproxy/af/upload"; | 29 "https://toolbarqueries.google.com/tbproxy/af/upload"; |
| 30 const char kAutofillQueryServerNameStartInHeader[] = "GFE/"; | 30 const char kAutofillQueryServerNameStartInHeader[] = "GFE/"; |
| 31 | 31 |
| 32 const size_t kMaxFormCacheSize = 16; | 32 const size_t kMaxFormCacheSize = 16; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 struct AutofillDownloadManager::FormRequestData { | 35 struct AutofillDownloadManager::FormRequestData { |
| 36 std::vector<std::string> form_signatures; | 36 std::vector<std::string> form_signatures; |
| 37 AutofillRequestType request_type; | 37 AutofillRequestType request_type; |
| 38 }; | 38 }; |
| 39 | 39 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 SetNegativeUploadRate(new_negative_upload_rate); | 345 SetNegativeUploadRate(new_negative_upload_rate); |
| 346 } | 346 } |
| 347 | 347 |
| 348 if (observer_) | 348 if (observer_) |
| 349 observer_->OnUploadedPossibleFieldTypes(); | 349 observer_->OnUploadedPossibleFieldTypes(); |
| 350 } | 350 } |
| 351 } | 351 } |
| 352 delete it->first; | 352 delete it->first; |
| 353 url_fetchers_.erase(it); | 353 url_fetchers_.erase(it); |
| 354 } | 354 } |
| OLD | NEW |