| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // profile. Since the subsystem owns the policy provider, it's vital that it | 23 // profile. Since the subsystem owns the policy provider, it's vital that it |
| 24 // gets initialized before the profile's prefs and destroyed after the prefs | 24 // gets initialized before the profile's prefs and destroyed after the prefs |
| 25 // are gone. | 25 // are gone. |
| 26 class ProfilePolicyConnector : public ProfileKeyedService { | 26 class ProfilePolicyConnector : public ProfileKeyedService { |
| 27 public: | 27 public: |
| 28 explicit ProfilePolicyConnector(Profile* profile); | 28 explicit ProfilePolicyConnector(Profile* profile); |
| 29 ~ProfilePolicyConnector(); | 29 ~ProfilePolicyConnector(); |
| 30 | 30 |
| 31 // Schedules initialization of the policy backend service if the service is | 31 // Schedules initialization of the policy backend service if the service is |
| 32 // already constructed. | 32 // already constructed. |
| 33 void ScheduleServiceInitialization(int delay_milliseconds); | 33 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 34 | 34 |
| 35 // Initializes the context. Should be called only after the profile's request | 35 // Initializes the context. Should be called only after the profile's request |
| 36 // context is up. | 36 // context is up. |
| 37 void Initialize(); | 37 void Initialize(); |
| 38 | 38 |
| 39 // Shuts the context down. This must be called before the networking | 39 // Shuts the context down. This must be called before the networking |
| 40 // infrastructure in the profile goes away. | 40 // infrastructure in the profile goes away. |
| 41 // | 41 // |
| 42 // TODO(jknotten): this will be called by ProfileDependencyManager -- | 42 // TODO(jknotten): this will be called by ProfileDependencyManager -- |
| 43 // ensure that it is dependent on the right services. See comment | 43 // ensure that it is dependent on the right services. See comment |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 scoped_ptr<ConfigurationPolicyObserverRegistrar> profile_registrar_; | 93 scoped_ptr<ConfigurationPolicyObserverRegistrar> profile_registrar_; |
| 94 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_; | 94 ObserverList<ConfigurationPolicyProvider::Observer, true> observer_list_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(MergingPolicyProvider); | 96 DISALLOW_COPY_AND_ASSIGN(MergingPolicyProvider); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 | 99 |
| 100 } // namespace policy | 100 } // namespace policy |
| 101 | 101 |
| 102 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ | 102 #endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_H_ |
| OLD | NEW |