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

Side by Side Diff: components/autofill/core/browser/autofill_download_manager.cc

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto crrev.com/1564773002 Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_download_manager.h" 5 #include "components/autofill/core/browser/autofill_download_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/numerics/safe_conversions.h" 12 #include "base/numerics/safe_conversions.h"
13 #include "base/rand_util.h" 13 #include "base/rand_util.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
17 #include "components/autofill/core/browser/autofill_driver.h" 17 #include "components/autofill/core/browser/autofill_driver.h"
18 #include "components/autofill/core/browser/autofill_metrics.h" 18 #include "components/autofill/core/browser/autofill_metrics.h"
19 #include "components/autofill/core/browser/autofill_xml_parser.h" 19 #include "components/autofill/core/browser/autofill_xml_parser.h"
20 #include "components/autofill/core/browser/form_structure.h" 20 #include "components/autofill/core/browser/form_structure.h"
21 #include "components/autofill/core/common/autofill_pref_names.h" 21 #include "components/autofill/core/common/autofill_pref_names.h"
22 #include "components/compression/compression_utils.h"
23 #include "components/data_use_measurement/core/data_use_user_data.h" 22 #include "components/data_use_measurement/core/data_use_user_data.h"
24 #include "components/variations/net/variations_http_headers.h" 23 #include "components/variations/net/variations_http_headers.h"
25 #include "net/base/load_flags.h" 24 #include "net/base/load_flags.h"
26 #include "net/http/http_request_headers.h" 25 #include "net/http/http_request_headers.h"
27 #include "net/http/http_response_headers.h" 26 #include "net/http/http_response_headers.h"
28 #include "net/http/http_status_code.h" 27 #include "net/http/http_status_code.h"
29 #include "net/url_request/url_fetcher.h" 28 #include "net/url_request/url_fetcher.h"
29 #include "third_party/zlib/google/compression_utils.h"
30 #include "url/gurl.h" 30 #include "url/gurl.h"
31 31
32 namespace autofill { 32 namespace autofill {
33 33
34 namespace { 34 namespace {
35 35
36 const size_t kMaxFormCacheSize = 16; 36 const size_t kMaxFormCacheSize = 16;
37 const size_t kMaxFieldsPerQueryRequest = 100; 37 const size_t kMaxFieldsPerQueryRequest = 100;
38 38
39 const net::BackoffEntry::Policy kAutofillBackoffPolicy = { 39 const net::BackoffEntry::Policy kAutofillBackoffPolicy = {
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 it->second.form_signatures); 312 it->second.form_signatures);
313 } else { 313 } else {
314 observer_->OnUploadedPossibleFieldTypes(); 314 observer_->OnUploadedPossibleFieldTypes();
315 } 315 }
316 } 316 }
317 delete it->first; 317 delete it->first;
318 url_fetchers_.erase(it); 318 url_fetchers_.erase(it);
319 } 319 }
320 320
321 } // namespace autofill 321 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/autofill_download_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698