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

Side by Side Diff: components/wifi_sync/wifi_credential_syncable_service_factory.h

Issue 1426393003: NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.5-split-wcss
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_ 5 #ifndef COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_
6 #define COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_ 6 #define COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.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 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 } 15 }
16 16
17 namespace wifi_sync { 17 namespace wifi_sync {
18 18
19 class WifiConfigDelegate; 19 class WifiConfigDelegate;
20 class WifiConfigObserver;
20 class WifiCredentialSyncableService; 21 class WifiCredentialSyncableService;
21 22
22 // Singleton that owns all WifiCredentialSyncableServices and 23 // Singleton that owns all WifiCredentialSyncableServices and
23 // associates them with Profiles. Listens for the Profile's 24 // associates them with Profiles. Listens for the Profile's
24 // destruction notification and cleans up the associated 25 // destruction notification and cleans up the associated
25 // WifiCredentialSyncableServices. 26 // WifiCredentialSyncableServices.
26 class WifiCredentialSyncableServiceFactory 27 class WifiCredentialSyncableServiceFactory
27 : public BrowserContextKeyedServiceFactory { 28 : public BrowserContextKeyedServiceFactory {
28 public: 29 public:
29 // Returns the SyncableService for |browser_context|, creating the 30 // Returns the SyncableService for |browser_context|, creating the
(...skipping 19 matching lines...) Expand all
49 // BrowserContextKeyedServiceFactory implementation. 50 // BrowserContextKeyedServiceFactory implementation.
50 KeyedService* BuildServiceInstanceFor( 51 KeyedService* BuildServiceInstanceFor(
51 content::BrowserContext* context) const override; 52 content::BrowserContext* context) const override;
52 53
53 #if defined(OS_CHROMEOS) 54 #if defined(OS_CHROMEOS)
54 // Returns a scoped pointer to a WifiConfigDelegate, which can be 55 // Returns a scoped pointer to a WifiConfigDelegate, which can be
55 // used to configure the ChromeOS Wi-Fi settings associated with 56 // used to configure the ChromeOS Wi-Fi settings associated with
56 // |context|. 57 // |context|.
57 scoped_ptr<WifiConfigDelegate> BuildWifiConfigDelegateChromeOs( 58 scoped_ptr<WifiConfigDelegate> BuildWifiConfigDelegateChromeOs(
58 content::BrowserContext* context) const; 59 content::BrowserContext* context) const;
60
61 // Returns a scoped pointer to a WifiConfigObserver, which XXX.
62 scoped_ptr<WifiConfigObserver> BuildWifiConfigObserverChromeOs(
63 content::BrowserContext* context) const;
59 #endif 64 #endif
60 65
61 #if defined(OS_CHROMEOS) 66 #if defined(OS_CHROMEOS)
62 // Whether or not we should use LoginState to associate a new 67 // Whether or not we should use LoginState to associate a new
63 // SyncableService with a Shill profile. Should be set to true in 68 // SyncableService with a Shill profile. Should be set to true in
64 // sync integration tests, where it is not possible to control 69 // sync integration tests, where it is not possible to control
65 // LoginState at the time SyncableServices are constructed. 70 // LoginState at the time SyncableServices are constructed.
66 bool ignore_login_state_for_test_ = false; 71 bool ignore_login_state_for_test_ = false;
67 #endif 72 #endif
68 73
69 DISALLOW_COPY_AND_ASSIGN(WifiCredentialSyncableServiceFactory); 74 DISALLOW_COPY_AND_ASSIGN(WifiCredentialSyncableServiceFactory);
70 }; 75 };
71 76
72 } // namespace wifi_sync 77 } // namespace wifi_sync
73 78
74 #endif // COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_ 79 #endif // COMPONENTS_WIFI_SYNC_WIFI_CREDENTIAL_SYNCABLE_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698