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

Side by Side Diff: android_webview/browser/aw_form_database_service.h

Issue 16154031: Un-refcount AutofillWebData and TokenWebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 7 years, 6 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
« no previous file with comments | « no previous file | android_webview/browser/aw_form_database_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 15 matching lines...) Expand all
26 26
27 void Shutdown(); 27 void Shutdown();
28 28
29 // Returns whether the database has any data stored. May do 29 // Returns whether the database has any data stored. May do
30 // IO access and block. 30 // IO access and block.
31 bool HasFormData(); 31 bool HasFormData();
32 32
33 // Clear any saved form data. Executes asynchronously. 33 // Clear any saved form data. Executes asynchronously.
34 void ClearFormData(); 34 void ClearFormData();
35 35
36 scoped_refptr<autofill::AutofillWebDataService> 36 autofill::AutofillWebDataService*
37 get_autofill_webdata_service(); 37 get_autofill_webdata_service();
38 38
39 // WebDataServiceConsumer implementation. 39 // WebDataServiceConsumer implementation.
40 virtual void OnWebDataServiceRequestDone( 40 virtual void OnWebDataServiceRequestDone(
41 WebDataServiceBase::Handle h, 41 WebDataServiceBase::Handle h,
42 const WDTypedResult* result) OVERRIDE; 42 const WDTypedResult* result) OVERRIDE;
43 43
44 private: 44 private:
45 // Cancels the currently pending WebDataService query, if there is one. 45 // Cancels the currently pending WebDataService query, if there is one.
46 void CancelPendingQuery(); 46 void CancelPendingQuery();
47 47
48 void HasFormDataImpl(); 48 void HasFormDataImpl();
49 49
50 // Stores the query handle when an async database query is executed. 50 // Stores the query handle when an async database query is executed.
51 WebDataServiceBase::Handle pending_query_handle_; 51 WebDataServiceBase::Handle pending_query_handle_;
52 bool has_form_data_; 52 bool has_form_data_;
53 base::WaitableEvent completion_; 53 base::WaitableEvent completion_;
54 54
55 scoped_refptr<autofill::AutofillWebDataService> autofill_data_; 55 scoped_ptr<autofill::AutofillWebDataService> autofill_data_;
56 scoped_refptr<WebDatabaseService> web_database_; 56 scoped_refptr<WebDatabaseService> web_database_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(AwFormDatabaseService); 58 DISALLOW_COPY_AND_ASSIGN(AwFormDatabaseService);
59 }; 59 };
60 60
61 } // namespace android_webview 61 } // namespace android_webview
62 62
63 #endif // ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ 63 #endif // ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_form_database_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698