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_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ |
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/profiles/profile_keyed_service.h" | 12 #include "chrome/browser/profiles/profile_keyed_service.h" |
13 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | 13 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
14 #include "chrome/browser/webdata/web_database_service.h" | 14 #include "components/webdata/common/web_database_service.h" |
15 | 15 |
16 class AutofillWebDataService; | 16 class AutofillWebDataService; |
17 class WebDataService; | 17 class WebDataService; |
18 | 18 |
19 // A wrapper of WebDataService so that we can use it as a profile keyed service. | 19 // A wrapper of WebDataService so that we can use it as a profile keyed service. |
20 class WebDataServiceWrapper : public ProfileKeyedService { | 20 class WebDataServiceWrapper : public ProfileKeyedService { |
21 public: | 21 public: |
22 explicit WebDataServiceWrapper(Profile* profile); | 22 explicit WebDataServiceWrapper(Profile* profile); |
23 | 23 |
24 // For testing. | 24 // For testing. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // |ProfileKeyedBaseFactory| methods: | 66 // |ProfileKeyedBaseFactory| methods: |
67 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; | 67 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; |
68 virtual ProfileKeyedService* BuildServiceInstanceFor( | 68 virtual ProfileKeyedService* BuildServiceInstanceFor( |
69 Profile* profile) const OVERRIDE; | 69 Profile* profile) const OVERRIDE; |
70 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | 70 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory); | 72 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ | 75 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ |
OLD | NEW |