| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |
| 6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |
| 7 |
| 8 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h" |
| 9 |
| 10 class Profile; |
| 11 |
| 12 // Base for WebDataService class hierarchy. |
| 13 class WebDataServiceBase : public RefcountedProfileKeyedService { |
| 14 public: |
| 15 static scoped_refptr<WebDataServiceBase> ForProfile(Profile* profile); |
| 16 |
| 17 // All requests return an opaque handle of the following type. |
| 18 typedef int Handle; |
| 19 |
| 20 WebDataServiceBase(); |
| 21 |
| 22 // Cancel any pending request. You need to call this method if your |
| 23 // WebDataServiceConsumer is about to be deleted. |
| 24 virtual void CancelRequest(Handle h) = 0; |
| 25 |
| 26 protected: |
| 27 virtual ~WebDataServiceBase() {} |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ |
| OLD | NEW |