Disable firewall check. It takes signifficant time, need to be on FILE thread.
[chromium-blink-merge.git] / components / webdata / common / web_data_service_consumer.h
blob2341a8f4935c25fada5e11f7c28cd96d1c8aad54
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_
6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_
8 #include "components/webdata/common/web_data_results.h"
9 #include "components/webdata/common/web_data_service_base.h"
11 // 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.
13 class WebDataServiceConsumer {
14 public:
15 // Called when a request is done. h uniquely identifies the request.
16 // result can be NULL, if no result is expected or if the database could
17 // not be opened. The result object is destroyed after this call.
18 virtual void OnWebDataServiceRequestDone(WebDataServiceBase::Handle h,
19 const WDTypedResult* result) = 0;
21 protected:
22 virtual ~WebDataServiceConsumer() {}
26 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_CONSUMER_H_