Chromium Code Reviews| 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 { | |
| 14 public: | |
| 15 // All requests return an opaque handle of the following type. | |
| 16 typedef int Handle; | |
| 17 | |
| 18 virtual ~WebDataServiceBase() {} | |
| 19 | |
| 20 // Cancel any pending request. You need to call this method if your | |
| 21 // WebDataServiceConsumer is about to be deleted. | |
| 22 virtual void CancelRequest(Handle h) = 0; | |
| 23 | |
| 24 // Returns the pointer used as a notification source for this | |
| 25 // service. This may be different than this object's |this| pointer. | |
| 26 virtual WebDataServiceBase* GetNotificationSource() = 0; | |
|
erikwright (departed)
2012/09/13 01:45:11
It seems you could return a NotificationSource (co
Jói
2012/09/13 12:34:50
I think it's nicer to have it typed... if it's a N
erikwright (departed)
2012/09/13 13:28:10
I don't think there's a case in this CL where the
Jói
2012/09/13 14:48:52
I took another look and yeah, switching to Notific
| |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ | |
| OLD | NEW |