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