OLD | NEW |
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_download.h" | 5 #include "chrome/browser/autofill/autofill_download.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
13 #include "chrome/browser/autofill/autofill_metrics.h" | 13 #include "chrome/browser/autofill/autofill_metrics.h" |
14 #include "chrome/browser/autofill/autofill_xml_parser.h" | 14 #include "chrome/browser/autofill/autofill_xml_parser.h" |
15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
19 | 19 |
20 #define DISABLED_REQUEST_URL "http://disabled" | 20 #define DISABLED_REQUEST_URL "http://disabled" |
21 | 21 |
22 #if defined(GOOGLE_CHROME_BUILD) | 22 #if defined(GOOGLE_CHROME_BUILD) |
23 #include "chrome/browser/autofill/internal/autofill_download_internal.h" | 23 #include "chrome/browser/autofill/internal/autofill_download_internal.h" |
24 #else | 24 #else |
25 #define AUTO_FILL_QUERY_SERVER_REQUEST_URL DISABLED_REQUEST_URL | 25 #define AUTO_FILL_QUERY_SERVER_REQUEST_URL DISABLED_REQUEST_URL |
26 #define AUTO_FILL_UPLOAD_SERVER_REQUEST_URL DISABLED_REQUEST_URL | 26 #define AUTO_FILL_UPLOAD_SERVER_REQUEST_URL DISABLED_REQUEST_URL |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 SetNegativeUploadRate(new_negative_upload_rate); | 262 SetNegativeUploadRate(new_negative_upload_rate); |
263 } | 263 } |
264 | 264 |
265 if (observer_) | 265 if (observer_) |
266 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]); | 266 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]); |
267 } | 267 } |
268 } | 268 } |
269 delete it->first; | 269 delete it->first; |
270 url_fetchers_.erase(it); | 270 url_fetchers_.erase(it); |
271 } | 271 } |
OLD | NEW |