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_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 12 #include "components/keyed_service/core/keyed_service.h" |
12 | 13 |
13 class Profile; | 14 class Profile; |
14 | 15 |
15 namespace password_manager { | 16 namespace password_manager { |
16 class PasswordStore; | 17 class PasswordStore; |
17 } | 18 } |
18 | 19 |
19 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 20 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
20 // Local profile ids are used to associate resources stored outside the profile | 21 // Local profile ids are used to associate resources stored outside the profile |
21 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. | 22 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void RegisterProfilePrefs( | 70 virtual void RegisterProfilePrefs( |
70 user_prefs::PrefRegistrySyncable* registry) override; | 71 user_prefs::PrefRegistrySyncable* registry) override; |
71 virtual content::BrowserContext* GetBrowserContextToUse( | 72 virtual content::BrowserContext* GetBrowserContextToUse( |
72 content::BrowserContext* context) const override; | 73 content::BrowserContext* context) const override; |
73 virtual bool ServiceIsNULLWhileTesting() const override; | 74 virtual bool ServiceIsNULLWhileTesting() const override; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); | 76 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); |
76 }; | 77 }; |
77 | 78 |
78 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 79 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
OLD | NEW |