OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prefs/public/pref_service_base.h" |
12 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
13 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
15 #include "chrome/browser/autofill/autofill_metrics.h" | 16 #include "chrome/browser/autofill/autofill_metrics.h" |
16 #include "chrome/browser/autofill/autofill_xml_parser.h" | 17 #include "chrome/browser/autofill/autofill_xml_parser.h" |
17 #include "chrome/browser/autofill/form_structure.h" | 18 #include "chrome/browser/autofill/form_structure.h" |
18 #include "chrome/browser/api/prefs/pref_service_base.h" | |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "content/public/browser/browser_context.h" | 20 #include "content/public/browser/browser_context.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "net/base/load_flags.h" | 22 #include "net/base/load_flags.h" |
23 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
24 #include "net/url_request/url_fetcher.h" | 24 #include "net/url_request/url_fetcher.h" |
25 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" | 25 #include "third_party/libjingle/source/talk/xmllite/xmlparser.h" |
26 | 26 |
27 using content::BrowserContext; | 27 using content::BrowserContext; |
28 | 28 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 SetPositiveUploadRate(new_positive_upload_rate); | 326 SetPositiveUploadRate(new_positive_upload_rate); |
327 SetNegativeUploadRate(new_negative_upload_rate); | 327 SetNegativeUploadRate(new_negative_upload_rate); |
328 } | 328 } |
329 | 329 |
330 observer_->OnUploadedPossibleFieldTypes(); | 330 observer_->OnUploadedPossibleFieldTypes(); |
331 } | 331 } |
332 } | 332 } |
333 delete it->first; | 333 delete it->first; |
334 url_fetchers_.erase(it); | 334 url_fetchers_.erase(it); |
335 } | 335 } |
OLD | NEW |