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

Side by Side Diff: components/webdata/common/web_data_service_consumer.h

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « components/webdata/common/web_data_results.h ('k') | no next file » | 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) 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_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_ 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_
6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_ 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_
7 7
8 #include <memory>
9
8 #include "components/webdata/common/web_data_results.h" 10 #include "components/webdata/common/web_data_results.h"
9 #include "components/webdata/common/web_data_service_base.h" 11 #include "components/webdata/common/web_data_service_base.h"
10 12
11 // All requests to the web data service are asynchronous. When the request has 13 // All requests to the web data service are asynchronous. When the request has
12 // been performed, the data consumer is notified using the following interface. 14 // been performed, the data consumer is notified using the following interface.
13 class WebDataServiceConsumer { 15 class WebDataServiceConsumer {
14 public: 16 public:
15 // Called when a request is done. h uniquely identifies the request. 17 // Called when a request is done. h uniquely identifies the request. The
16 // result can be NULL, if no result is expected or if the database could 18 // result can be null if no result is expected or if the database could not be
17 // not be opened. The result object is destroyed after this call. 19 // opened.
18 virtual void OnWebDataServiceRequestDone(WebDataServiceBase::Handle h, 20 virtual void OnWebDataServiceRequestDone(
19 const WDTypedResult* result) = 0; 21 WebDataServiceBase::Handle h,
22 std::unique_ptr<WDTypedResult> result) = 0;
20 23
21 protected: 24 protected:
22 virtual ~WebDataServiceConsumer() {} 25 virtual ~WebDataServiceConsumer() {}
23 }; 26 };
24 27
25 28
26 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_ 29 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_results.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698