OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/content/browser/autocheckout/whitelist_manager.h" | 5 #include "components/autofill/content/browser/autocheckout/whitelist_manager.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "components/autofill/common/autofill_switches.h" | 13 #include "components/autofill/core/common/autofill_switches.h" |
14 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
17 #include "net/http/http_status_code.h" | 17 #include "net/http/http_status_code.h" |
18 #include "net/url_request/url_fetcher.h" | 18 #include "net/url_request/url_fetcher.h" |
19 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 // Back off in seconds after each whitelist download is attempted. | 23 // Back off in seconds after each whitelist download is attempted. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Chrome can ignore them and continue to work. | 164 // Chrome can ignore them and continue to work. |
165 if (!fields[0].empty()) | 165 if (!fields[0].empty()) |
166 new_url_prefixes.push_back(fields[0]); | 166 new_url_prefixes.push_back(fields[0]); |
167 } | 167 } |
168 } | 168 } |
169 url_prefixes_ = new_url_prefixes; | 169 url_prefixes_ = new_url_prefixes; |
170 } | 170 } |
171 | 171 |
172 } // namespace autocheckout | 172 } // namespace autocheckout |
173 } // namespace autofill | 173 } // namespace autofill |
OLD | NEW |