OLD | NEW |
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 CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS. | 38 // Extends ChromeBrowserPolicyConnector with the setup specific to ChromeOS. |
39 class BrowserPolicyConnectorChromeOS : public ChromeBrowserPolicyConnector { | 39 class BrowserPolicyConnectorChromeOS : public ChromeBrowserPolicyConnector { |
40 public: | 40 public: |
41 BrowserPolicyConnectorChromeOS(); | 41 BrowserPolicyConnectorChromeOS(); |
42 | 42 |
43 virtual ~BrowserPolicyConnectorChromeOS(); | 43 virtual ~BrowserPolicyConnectorChromeOS(); |
44 | 44 |
45 virtual void Init( | 45 virtual void Init( |
46 PrefService* local_state, | 46 PrefService* local_state, |
47 scoped_refptr<net::URLRequestContextGetter> request_context) OVERRIDE; | 47 scoped_refptr<net::URLRequestContextGetter> request_context) override; |
48 | 48 |
49 // Shutdown() is called from BrowserProcessImpl::StartTearDown() but |this| | 49 // Shutdown() is called from BrowserProcessImpl::StartTearDown() but |this| |
50 // observes some objects that get destroyed earlier. PreShutdown() is called | 50 // observes some objects that get destroyed earlier. PreShutdown() is called |
51 // from ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun(), allowing the | 51 // from ChromeBrowserMainPartsChromeos::PostMainMessageLoopRun(), allowing the |
52 // connection to these dependencies to be severed earlier. | 52 // connection to these dependencies to be severed earlier. |
53 void PreShutdown(); | 53 void PreShutdown(); |
54 | 54 |
55 virtual void Shutdown() OVERRIDE; | 55 virtual void Shutdown() override; |
56 | 56 |
57 // Returns true if this device is managed by an enterprise (as opposed to | 57 // Returns true if this device is managed by an enterprise (as opposed to |
58 // a local owner). | 58 // a local owner). |
59 bool IsEnterpriseManaged(); | 59 bool IsEnterpriseManaged(); |
60 | 60 |
61 // Returns the enterprise domain if device is managed. | 61 // Returns the enterprise domain if device is managed. |
62 std::string GetEnterpriseDomain(); | 62 std::string GetEnterpriseDomain(); |
63 | 63 |
64 // Returns the device mode. For ChromeOS this function will return the mode | 64 // Returns the device mode. For ChromeOS this function will return the mode |
65 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been | 65 // stored in the lockbox, or DEVICE_MODE_CONSUMER if the lockbox has been |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_ptr<ConsumerManagementService> consumer_management_service_; | 157 scoped_ptr<ConsumerManagementService> consumer_management_service_; |
158 | 158 |
159 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; | 159 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); | 161 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace policy | 164 } // namespace policy |
165 | 165 |
166 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ |
OLD | NEW |