Chromium Code Reviews| OLD | NEW | 
|---|---|
| 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 CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 5 #ifndef CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
| 6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 6 #define CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
| 7 | 7 | 
| 8 #include "content/public/browser/notification_source.h" | 8 #include "content/public/browser/notification_source.h" | 
| 
 
dhollowa
2013/03/12 22:22:28
Is this still needed?
 
kaiwang
2013/03/13 04:57:20
Done.
 
 | |
| 9 | 9 | 
| 10 // Base for WebDataService class hierarchy. | 10 // Base for WebDataService class hierarchy. | 
| 11 class WebDataServiceBase { | 11 class WebDataServiceBase { | 
| 12 public: | 12 public: | 
| 13 // All requests return an opaque handle of the following type. | 13 // All requests return an opaque handle of the following type. | 
| 14 typedef int Handle; | 14 typedef int Handle; | 
| 15 | 15 | 
| 16 virtual ~WebDataServiceBase() {} | 16 virtual ~WebDataServiceBase() {} | 
| 17 | 17 | 
| 18 // Cancel any pending request. You need to call this method if your | 18 // Cancel any pending request. You need to call this method if your | 
| 19 // WebDataServiceConsumer is about to be deleted. | 19 // WebDataServiceConsumer is about to be deleted. | 
| 20 virtual void CancelRequest(Handle h) = 0; | 20 virtual void CancelRequest(Handle h) = 0; | 
| 21 | |
| 22 // Returns the notification source for this service. This may use a | |
| 23 // pointer other than this object's |this| pointer. | |
| 24 virtual content::NotificationSource GetNotificationSource() = 0; | |
| 25 }; | 21 }; | 
| 26 | 22 | 
| 27 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 23 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | 
| OLD | NEW |