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

Side by Side Diff: chrome/browser/browser_process_platform_part_chromeos.h

Issue 2858113003: Enable device-wide EAP-TLS networks (Closed)
Patch Set: initial_load only true on initial load, added tests, fixed 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector>
9 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
13 #include "chrome/browser/browser_process_platform_part_base.h" 14 #include "chrome/browser/browser_process_platform_part_base.h"
15 #include "crypto/scoped_nss_types.h"
14 16
15 namespace chromeos { 17 namespace chromeos {
16 class ChromeSessionManager; 18 class ChromeSessionManager;
17 class ChromeUserManager; 19 class ChromeUserManager;
18 class ProfileHelper; 20 class ProfileHelper;
19 class TimeZoneResolver; 21 class TimeZoneResolver;
20 } 22 }
21 23
22 namespace chromeos { 24 namespace chromeos {
23 namespace system { 25 namespace system {
24 class AutomaticRebootManager; 26 class AutomaticRebootManager;
25 class DeviceDisablingManager; 27 class DeviceDisablingManager;
26 class DeviceDisablingManagerDefaultDelegate; 28 class DeviceDisablingManagerDefaultDelegate;
27 class SystemClock; 29 class SystemClock;
28 class TimeZoneResolverManager; 30 class TimeZoneResolverManager;
29 } 31 }
30 } 32 }
31 33
34 namespace net {
35 class NSSCertDatabase;
36 }
37
32 namespace policy { 38 namespace policy {
33 class BrowserPolicyConnector; 39 class BrowserPolicyConnector;
34 class BrowserPolicyConnectorChromeOS; 40 class BrowserPolicyConnectorChromeOS;
35 } 41 }
36 42
37 class ScopedKeepAlive; 43 class ScopedKeepAlive;
38 44
39 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase, 45 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
40 public base::NonThreadSafe { 46 public base::NonThreadSafe {
41 public: 47 public:
42 BrowserProcessPlatformPart(); 48 BrowserProcessPlatformPart();
43 ~BrowserProcessPlatformPart() override; 49 ~BrowserProcessPlatformPart() override;
44 50
45 void InitializeAutomaticRebootManager(); 51 void InitializeAutomaticRebootManager();
46 void ShutdownAutomaticRebootManager(); 52 void ShutdownAutomaticRebootManager();
47 53
48 void InitializeChromeUserManager(); 54 void InitializeChromeUserManager();
49 void DestroyChromeUserManager(); 55 void DestroyChromeUserManager();
50 56
51 void InitializeDeviceDisablingManager(); 57 void InitializeDeviceDisablingManager();
52 void ShutdownDeviceDisablingManager(); 58 void ShutdownDeviceDisablingManager();
53 59
54 void InitializeSessionManager(); 60 void InitializeSessionManager();
55 void ShutdownSessionManager(); 61 void ShutdownSessionManager();
56 62
63 // Initializes the system slot backed NSS certificate database using
64 // |system_slot|.
65 void InitializeSystemSlotCertDatabase(crypto::ScopedPK11Slot system_slot);
66 void ShutdownSystemSlotCertDatabase();
67
68 // Retrieves the system slot backed certificate database. |callback| can be
69 // called synchronously or asynchronously.
70 void GetSystemSlotCertDatabase(
71 base::Callback<void(net::NSSCertDatabase*)> callback);
72
57 // Disable the offline interstitial easter egg if the device is enterprise 73 // Disable the offline interstitial easter egg if the device is enterprise
58 // enrolled. 74 // enrolled.
59 void DisableDinoEasterEggIfEnrolled(); 75 void DisableDinoEasterEggIfEnrolled();
60 76
61 // Used to register a KeepAlive when Ash is initialized, and release it 77 // Used to register a KeepAlive when Ash is initialized, and release it
62 // when until Chrome starts exiting. Ensure we stay running the whole time. 78 // when until Chrome starts exiting. Ensure we stay running the whole time.
63 void RegisterKeepAlive(); 79 void RegisterKeepAlive();
64 void UnregisterKeepAlive(); 80 void UnregisterKeepAlive();
65 81
66 // Returns the ProfileHelper instance that is used to identify 82 // Returns the ProfileHelper instance that is used to identify
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 device_disabling_manager_; 133 device_disabling_manager_;
118 134
119 std::unique_ptr<chromeos::system::TimeZoneResolverManager> 135 std::unique_ptr<chromeos::system::TimeZoneResolverManager>
120 timezone_resolver_manager_; 136 timezone_resolver_manager_;
121 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_; 137 std::unique_ptr<chromeos::TimeZoneResolver> timezone_resolver_;
122 138
123 std::unique_ptr<chromeos::system::SystemClock> system_clock_; 139 std::unique_ptr<chromeos::system::SystemClock> system_clock_;
124 140
125 std::unique_ptr<ScopedKeepAlive> keep_alive_; 141 std::unique_ptr<ScopedKeepAlive> keep_alive_;
126 142
143 // Global NSSCertDatabase which sees the system token.
144 std::unique_ptr<net::NSSCertDatabase> system_token_cert_database_;
145 std::vector<base::Callback<void(net::NSSCertDatabase*)>>
146 system_token_ready_callbacks_;
147
127 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); 148 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
128 }; 149 };
129 150
130 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_ 151 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698