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

Side by Side Diff: chrome/browser/chromeos/policy/user_network_configuration_updater_factory.h

Issue 2862003002: Enable policy-imported root CA certificates for kiosk and AD sessions (Closed)
Patch Set: Addressed comments. Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_network_configuration_updater_factory.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FACTOR Y_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FACTOR Y_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FACTOR Y_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FACTOR Y_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
11 11
12 namespace base { 12 namespace base {
13 template <typename T> 13 template <typename T>
14 struct DefaultSingletonTraits; 14 struct DefaultSingletonTraits;
15 } // namespace base 15 } // namespace base
16
17 namespace user_manager {
18 class User;
19 }
20
16 class Profile; 21 class Profile;
17 22
18 namespace policy { 23 namespace policy {
19 24
20 class UserNetworkConfigurationUpdater; 25 class UserNetworkConfigurationUpdater;
21 26
22 // Factory to create UserNetworkConfigurationUpdater. 27 // Factory to create UserNetworkConfigurationUpdater.
23 class UserNetworkConfigurationUpdaterFactory 28 class UserNetworkConfigurationUpdaterFactory
24 : public BrowserContextKeyedServiceFactory { 29 : public BrowserContextKeyedServiceFactory {
25 public: 30 public:
(...skipping 12 matching lines...) Expand all
38 ~UserNetworkConfigurationUpdaterFactory() override; 43 ~UserNetworkConfigurationUpdaterFactory() override;
39 44
40 // BrowserContextKeyedServiceFactory: 45 // BrowserContextKeyedServiceFactory:
41 content::BrowserContext* GetBrowserContextToUse( 46 content::BrowserContext* GetBrowserContextToUse(
42 content::BrowserContext* context) const override; 47 content::BrowserContext* context) const override;
43 bool ServiceIsCreatedWithBrowserContext() const override; 48 bool ServiceIsCreatedWithBrowserContext() const override;
44 bool ServiceIsNULLWhileTesting() const override; 49 bool ServiceIsNULLWhileTesting() const override;
45 KeyedService* BuildServiceInstanceFor( 50 KeyedService* BuildServiceInstanceFor(
46 content::BrowserContext* context) const override; 51 content::BrowserContext* context) const override;
47 52
53 static bool AllowTrustedCertsFromPolicy(const user_manager::User* user);
54
48 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdaterFactory); 55 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdaterFactory);
49 }; 56 };
50 57
51 } // namespace policy 58 } // namespace policy
52 59
53 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FAC TORY_H_ 60 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_FAC TORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_network_configuration_updater_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698