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

Side by Side Diff: components/autofill/browser/autocomplete_history_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AUTOCOMPLETE_HISTORY_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 10 matching lines...) Expand all
21 21
22 class AutofillExternalDelegate; 22 class AutofillExternalDelegate;
23 struct FormData; 23 struct FormData;
24 24
25 // Per-tab Autocomplete history manager. Handles receiving form data 25 // Per-tab Autocomplete history manager. Handles receiving form data
26 // from the renderer and the storing and retrieving of form data 26 // from the renderer and the storing and retrieving of form data
27 // through WebDataServiceBase. 27 // through WebDataServiceBase.
28 class AutocompleteHistoryManager : public content::WebContentsObserver, 28 class AutocompleteHistoryManager : public content::WebContentsObserver,
29 public WebDataServiceConsumer { 29 public WebDataServiceConsumer {
30 public: 30 public:
31 explicit AutocompleteHistoryManager(content::WebContents* web_contents); 31 AutocompleteHistoryManager(
32 content::WebContents* web_contents,
33 scoped_refptr<AutofillWebDataService> autofill_data);
32 virtual ~AutocompleteHistoryManager(); 34 virtual ~AutocompleteHistoryManager();
33 35
34 // content::WebContentsObserver implementation. 36 // content::WebContentsObserver implementation.
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 37 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
36 38
37 // WebDataServiceConsumer implementation. 39 // WebDataServiceConsumer implementation.
38 virtual void OnWebDataServiceRequestDone( 40 virtual void OnWebDataServiceRequestDone(
39 WebDataServiceBase::Handle h, 41 WebDataServiceBase::Handle h,
40 const WDTypedResult* result) OVERRIDE; 42 const WDTypedResult* result) OVERRIDE;
41 43
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Delegate to perform external processing (display, selection) on 88 // Delegate to perform external processing (display, selection) on
87 // our behalf. Weak. 89 // our behalf. Weak.
88 AutofillExternalDelegate* external_delegate_; 90 AutofillExternalDelegate* external_delegate_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager); 92 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager);
91 }; 93 };
92 94
93 } // namespace autofill 95 } // namespace autofill
94 96
95 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 97 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698