| 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 COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ |
| 6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ | 6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 // Builds an uninitialized BrowserPolicyConnector. | 64 // Builds an uninitialized BrowserPolicyConnector. |
| 65 // Init() should be called to create and start the policy components. | 65 // Init() should be called to create and start the policy components. |
| 66 explicit BrowserPolicyConnector( | 66 explicit BrowserPolicyConnector( |
| 67 const HandlerListFactory& handler_list_factory); | 67 const HandlerListFactory& handler_list_factory); |
| 68 | 68 |
| 69 // Helper for the public Init() that must be called by subclasses. | 69 // Helper for the public Init() that must be called by subclasses. |
| 70 void InitInternal( | 70 void InitInternal( |
| 71 PrefService* local_state, | 71 PrefService* local_state, |
| 72 scoped_ptr<DeviceManagementService> device_management_service); | 72 std::unique_ptr<DeviceManagementService> device_management_service); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 scoped_ptr<PolicyStatisticsCollector> policy_statistics_collector_; | 75 std::unique_ptr<PolicyStatisticsCollector> policy_statistics_collector_; |
| 76 | 76 |
| 77 scoped_ptr<DeviceManagementService> device_management_service_; | 77 std::unique_ptr<DeviceManagementService> device_management_service_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); | 79 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace policy | 82 } // namespace policy |
| 83 | 83 |
| 84 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ | 84 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ |
| OLD | NEW |