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

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

Issue 7620004: Update Autofill query and upload URLs to use https. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698