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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 class WebDataServiceWrapper : public KeyedService { | 28 class WebDataServiceWrapper : public KeyedService { |
29 public: | 29 public: |
30 explicit WebDataServiceWrapper(Profile* profile); | 30 explicit WebDataServiceWrapper(Profile* profile); |
31 | 31 |
32 // For testing. | 32 // For testing. |
33 WebDataServiceWrapper(); | 33 WebDataServiceWrapper(); |
34 | 34 |
35 virtual ~WebDataServiceWrapper(); | 35 virtual ~WebDataServiceWrapper(); |
36 | 36 |
37 // KeyedService: | 37 // KeyedService: |
38 virtual void Shutdown() OVERRIDE; | 38 virtual void Shutdown() override; |
39 | 39 |
40 virtual scoped_refptr<autofill::AutofillWebDataService> GetAutofillWebData(); | 40 virtual scoped_refptr<autofill::AutofillWebDataService> GetAutofillWebData(); |
41 | 41 |
42 virtual scoped_refptr<KeywordWebDataService> GetKeywordWebData(); | 42 virtual scoped_refptr<KeywordWebDataService> GetKeywordWebData(); |
43 | 43 |
44 virtual scoped_refptr<TokenWebData> GetTokenWebData(); | 44 virtual scoped_refptr<TokenWebData> GetTokenWebData(); |
45 | 45 |
46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
47 virtual scoped_refptr<PasswordWebDataService> GetPasswordWebData(); | 47 virtual scoped_refptr<PasswordWebDataService> GetPasswordWebData(); |
48 #endif | 48 #endif |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 static WebDataServiceFactory* GetInstance(); | 99 static WebDataServiceFactory* GetInstance(); |
100 | 100 |
101 private: | 101 private: |
102 friend struct DefaultSingletonTraits<WebDataServiceFactory>; | 102 friend struct DefaultSingletonTraits<WebDataServiceFactory>; |
103 | 103 |
104 WebDataServiceFactory(); | 104 WebDataServiceFactory(); |
105 virtual ~WebDataServiceFactory(); | 105 virtual ~WebDataServiceFactory(); |
106 | 106 |
107 // |BrowserContextKeyedBaseFactory| methods: | 107 // |BrowserContextKeyedBaseFactory| methods: |
108 virtual content::BrowserContext* GetBrowserContextToUse( | 108 virtual content::BrowserContext* GetBrowserContextToUse( |
109 content::BrowserContext* context) const OVERRIDE; | 109 content::BrowserContext* context) const override; |
110 virtual KeyedService* BuildServiceInstanceFor( | 110 virtual KeyedService* BuildServiceInstanceFor( |
111 content::BrowserContext* profile) const OVERRIDE; | 111 content::BrowserContext* profile) const override; |
112 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | 112 virtual bool ServiceIsNULLWhileTesting() const override; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory); | 114 DISALLOW_COPY_AND_ASSIGN(WebDataServiceFactory); |
115 }; | 115 }; |
116 | 116 |
117 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ | 117 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_FACTORY_H__ |
OLD | NEW |