Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: components/autofill/browser/autocheckout/whitelist_manager.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "components/autofill/browser/autofill_metrics.h" 12 #include "components/autofill/browser/autofill_metrics.h"
13 #include "components/autofill/common/autofill_export.h"
13 #include "net/url_request/url_fetcher_delegate.h" 14 #include "net/url_request/url_fetcher_delegate.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace content { 18 namespace content {
18 class BrowserContext; 19 class BrowserContext;
19 } 20 }
20 21
21 namespace net { 22 namespace net {
22 class URLFetcher; 23 class URLFetcher;
23 class URLRequestContextGetter; 24 class URLRequestContextGetter;
24 } 25 }
25 26
26 namespace autofill { 27 namespace autofill {
27 namespace autocheckout { 28 namespace autocheckout {
28 29
29 // Downloads and caches the list of URL prefixes whitelisted for use with 30 // Downloads and caches the list of URL prefixes whitelisted for use with
30 // Autocheckout. 31 // Autocheckout.
31 class WhitelistManager : public net::URLFetcherDelegate { 32 class AUTOFILL_EXPORT WhitelistManager : public net::URLFetcherDelegate {
32 public: 33 public:
33 WhitelistManager(); 34 WhitelistManager();
34 virtual ~WhitelistManager(); 35 virtual ~WhitelistManager();
35 36
36 // Schedule a fetch of the Autocheckout whitelist file if it's not already 37 // Schedule a fetch of the Autocheckout whitelist file if it's not already
37 // loaded. This helps ensure that the whitelist will be available by the time 38 // loaded. This helps ensure that the whitelist will be available by the time
38 // the user navigates to a form on which Autocheckout should be enabled. 39 // the user navigates to a form on which Autocheckout should be enabled.
39 void Init(net::URLRequestContextGetter* context_getter); 40 void Init(net::URLRequestContextGetter* context_getter);
40 41
41 // Matches the url with whitelist and return the matched url prefix. 42 // Matches the url with whitelist and return the matched url prefix.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 scoped_ptr<net::URLFetcher> request_; 99 scoped_ptr<net::URLFetcher> request_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(WhitelistManager); 101 DISALLOW_COPY_AND_ASSIGN(WhitelistManager);
101 }; 102 };
102 103
103 } // namespace autocheckout 104 } // namespace autocheckout
104 } // namespace autofill 105 } // namespace autofill
105 106
106 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_ 107 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_WHITELIST_MANAGER_H_
107 108
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698