| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <list> | 10 #include <list> |
| 11 #include <map> | 11 #include <map> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "chrome/browser/autofill/autofill_type.h" | 19 #include "chrome/browser/autofill/autofill_type.h" |
| 20 #include "content/public/common/url_fetcher_delegate.h" | 20 #include "content/public/common/url_fetcher_delegate.h" |
| 21 | 21 |
| 22 class AutofillMetrics; | 22 class AutofillMetrics; |
| 23 class FormStructure; | 23 class FormStructure; |
| 24 class GURL; | |
| 25 class Profile; | 24 class Profile; |
| 26 | 25 |
| 27 namespace net { | |
| 28 class URLRequestStatus; | |
| 29 } | |
| 30 | |
| 31 // Handles getting and updating Autofill heuristics. | 26 // Handles getting and updating Autofill heuristics. |
| 32 class AutofillDownloadManager : public content::URLFetcherDelegate { | 27 class AutofillDownloadManager : public content::URLFetcherDelegate { |
| 33 public: | 28 public: |
| 34 enum AutofillRequestType { | 29 enum AutofillRequestType { |
| 35 REQUEST_QUERY, | 30 REQUEST_QUERY, |
| 36 REQUEST_UPLOAD, | 31 REQUEST_UPLOAD, |
| 37 }; | 32 }; |
| 38 | 33 |
| 39 // An interface used to notify clients of AutofillDownloadManager. | 34 // An interface used to notify clients of AutofillDownloadManager. |
| 40 class Observer { | 35 class Observer { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // |positive_upload_rate_| is for matched forms, | 147 // |positive_upload_rate_| is for matched forms, |
| 153 // |negative_upload_rate_| for non matched. | 148 // |negative_upload_rate_| for non matched. |
| 154 double positive_upload_rate_; | 149 double positive_upload_rate_; |
| 155 double negative_upload_rate_; | 150 double negative_upload_rate_; |
| 156 | 151 |
| 157 // Needed for unit-test. | 152 // Needed for unit-test. |
| 158 int fetcher_id_for_unittest_; | 153 int fetcher_id_for_unittest_; |
| 159 }; | 154 }; |
| 160 | 155 |
| 161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ | 156 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ |
| OLD | NEW |