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

Side by Side Diff: chrome/browser/api/webdata/web_data_service_base.h

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/api/prefs/pref_service_base.h ('k') | chrome/browser/autofill/DEPS » ('j') | 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 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 "chrome/browser/profiles/refcounted_profile_keyed_service.h" 8 #include "chrome/browser/profiles/refcounted_profile_keyed_service.h"
9 #include "content/public/browser/notification_source.h" 9 #include "content/public/browser/notification_source.h"
10 10
11 class Profile;
12
13 // Base for WebDataService class hierarchy. 11 // Base for WebDataService class hierarchy.
14 class WebDataServiceBase { 12 class WebDataServiceBase {
15 public: 13 public:
16 // All requests return an opaque handle of the following type. 14 // All requests return an opaque handle of the following type.
17 typedef int Handle; 15 typedef int Handle;
18 16
19 virtual ~WebDataServiceBase() {} 17 virtual ~WebDataServiceBase() {}
20 18
21 // Cancel any pending request. You need to call this method if your 19 // Cancel any pending request. You need to call this method if your
22 // WebDataServiceConsumer is about to be deleted. 20 // WebDataServiceConsumer is about to be deleted.
23 virtual void CancelRequest(Handle h) = 0; 21 virtual void CancelRequest(Handle h) = 0;
24 22
25 // Returns the notification source for this service. This may use a 23 // Returns the notification source for this service. This may use a
26 // pointer other than this object's |this| pointer. 24 // pointer other than this object's |this| pointer.
27 virtual content::NotificationSource GetNotificationSource() = 0; 25 virtual content::NotificationSource GetNotificationSource() = 0;
28 }; 26 };
29 27
30 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_ 28 #endif // CHROME_BROWSER_API_WEBDATA_WEB_DATA_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/api/prefs/pref_service_base.h ('k') | chrome/browser/autofill/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698