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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 29 matching lines...) Expand all
40 public WebDataServiceBase { 40 public WebDataServiceBase {
41 public: 41 public:
42 AutofillWebDataService(scoped_refptr<base::MessageLoopProxy> ui_thread, 42 AutofillWebDataService(scoped_refptr<base::MessageLoopProxy> ui_thread,
43 scoped_refptr<base::MessageLoopProxy> db_thread); 43 scoped_refptr<base::MessageLoopProxy> db_thread);
44 AutofillWebDataService(scoped_refptr<WebDatabaseService> wdbs, 44 AutofillWebDataService(scoped_refptr<WebDatabaseService> wdbs,
45 scoped_refptr<base::MessageLoopProxy> ui_thread, 45 scoped_refptr<base::MessageLoopProxy> ui_thread,
46 scoped_refptr<base::MessageLoopProxy> db_thread, 46 scoped_refptr<base::MessageLoopProxy> db_thread,
47 const ProfileErrorCallback& callback); 47 const ProfileErrorCallback& callback);
48 48
49 // WebDataServiceBase implementation. 49 // WebDataServiceBase implementation.
50 virtual void ShutdownOnUIThread() OVERRIDE; 50 virtual void ShutdownOnUIThread() override;
51 51
52 // AutofillWebData implementation. 52 // AutofillWebData implementation.
53 virtual void AddFormFields( 53 virtual void AddFormFields(
54 const std::vector<FormFieldData>& fields) OVERRIDE; 54 const std::vector<FormFieldData>& fields) override;
55 virtual WebDataServiceBase::Handle GetFormValuesForElementName( 55 virtual WebDataServiceBase::Handle GetFormValuesForElementName(
56 const base::string16& name, 56 const base::string16& name,
57 const base::string16& prefix, 57 const base::string16& prefix,
58 int limit, 58 int limit,
59 WebDataServiceConsumer* consumer) OVERRIDE; 59 WebDataServiceConsumer* consumer) override;
60 60
61 virtual WebDataServiceBase::Handle HasFormElements( 61 virtual WebDataServiceBase::Handle HasFormElements(
62 WebDataServiceConsumer* consumer) OVERRIDE; 62 WebDataServiceConsumer* consumer) override;
63 virtual void RemoveFormElementsAddedBetween( 63 virtual void RemoveFormElementsAddedBetween(
64 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; 64 const base::Time& delete_begin, const base::Time& delete_end) override;
65 virtual void RemoveFormValueForElementName( 65 virtual void RemoveFormValueForElementName(
66 const base::string16& name, 66 const base::string16& name,
67 const base::string16& value) OVERRIDE; 67 const base::string16& value) override;
68 virtual void AddAutofillProfile(const AutofillProfile& profile) OVERRIDE; 68 virtual void AddAutofillProfile(const AutofillProfile& profile) override;
69 virtual void UpdateAutofillProfile(const AutofillProfile& profile) OVERRIDE; 69 virtual void UpdateAutofillProfile(const AutofillProfile& profile) override;
70 virtual void RemoveAutofillProfile(const std::string& guid) OVERRIDE; 70 virtual void RemoveAutofillProfile(const std::string& guid) override;
71 virtual WebDataServiceBase::Handle GetAutofillProfiles( 71 virtual WebDataServiceBase::Handle GetAutofillProfiles(
72 WebDataServiceConsumer* consumer) OVERRIDE; 72 WebDataServiceConsumer* consumer) override;
73 virtual void UpdateAutofillEntries( 73 virtual void UpdateAutofillEntries(
74 const std::vector<AutofillEntry>& autofill_entries) OVERRIDE; 74 const std::vector<AutofillEntry>& autofill_entries) override;
75 virtual void AddCreditCard(const CreditCard& credit_card) OVERRIDE; 75 virtual void AddCreditCard(const CreditCard& credit_card) override;
76 virtual void UpdateCreditCard(const CreditCard& credit_card) OVERRIDE; 76 virtual void UpdateCreditCard(const CreditCard& credit_card) override;
77 virtual void RemoveCreditCard(const std::string& guid) OVERRIDE; 77 virtual void RemoveCreditCard(const std::string& guid) override;
78 virtual WebDataServiceBase::Handle GetCreditCards( 78 virtual WebDataServiceBase::Handle GetCreditCards(
79 WebDataServiceConsumer* consumer) OVERRIDE; 79 WebDataServiceConsumer* consumer) override;
80 virtual void RemoveAutofillDataModifiedBetween( 80 virtual void RemoveAutofillDataModifiedBetween(
81 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; 81 const base::Time& delete_begin, const base::Time& delete_end) override;
82 virtual void RemoveOriginURLsModifiedBetween( 82 virtual void RemoveOriginURLsModifiedBetween(
83 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; 83 const base::Time& delete_begin, const base::Time& delete_end) override;
84 84
85 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer); 85 void AddObserver(AutofillWebDataServiceObserverOnDBThread* observer);
86 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer); 86 void RemoveObserver(AutofillWebDataServiceObserverOnDBThread* observer);
87 87
88 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer); 88 void AddObserver(AutofillWebDataServiceObserverOnUIThread* observer);
89 void RemoveObserver(AutofillWebDataServiceObserverOnUIThread* observer); 89 void RemoveObserver(AutofillWebDataServiceObserverOnUIThread* observer);
90 90
91 // Returns a SupportsUserData objects that may be used to store data 91 // Returns a SupportsUserData objects that may be used to store data
92 // owned by the DB thread on this object. Should be called only from 92 // owned by the DB thread on this object. Should be called only from
93 // the DB thread, and will be destroyed on the DB thread soon after 93 // the DB thread, and will be destroyed on the DB thread soon after
(...skipping 29 matching lines...) Expand all
123 // This factory is used on the UI thread. All vended weak pointers are 123 // This factory is used on the UI thread. All vended weak pointers are
124 // invalidated in ShutdownOnUIThread(). 124 // invalidated in ShutdownOnUIThread().
125 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; 125 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); 127 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService);
128 }; 128 };
129 129
130 } // namespace autofill 130 } // namespace autofill
131 131
132 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 132 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698