| 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_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |    5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 
|    6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |    6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 
|    7  |    7  | 
|    8 #include "base/basictypes.h" |    8 #include "base/basictypes.h" | 
|    9 #include "base/compiler_specific.h" |    9 #include "base/compiler_specific.h" | 
|   10 #include "base/macros.h" |   10 #include "base/macros.h" | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|   32 // device-global invalidation service can be replaced with another service that |   32 // device-global invalidation service can be replaced with another service that | 
|   33 // just connected. |   33 // just connected. | 
|   34 class DeviceCloudPolicyInvalidator : public content::NotificationObserver { |   34 class DeviceCloudPolicyInvalidator : public content::NotificationObserver { | 
|   35  public: |   35  public: | 
|   36   DeviceCloudPolicyInvalidator(); |   36   DeviceCloudPolicyInvalidator(); | 
|   37   virtual ~DeviceCloudPolicyInvalidator(); |   37   virtual ~DeviceCloudPolicyInvalidator(); | 
|   38  |   38  | 
|   39   // content::NotificationObserver: |   39   // content::NotificationObserver: | 
|   40   virtual void Observe(int type, |   40   virtual void Observe(int type, | 
|   41                        const content::NotificationSource& source, |   41                        const content::NotificationSource& source, | 
|   42                        const content::NotificationDetails& details) OVERRIDE; |   42                        const content::NotificationDetails& details) override; | 
|   43  |   43  | 
|   44  private: |   44  private: | 
|   45   friend class DeviceCloudPolicyInvalidatorTest; |   45   friend class DeviceCloudPolicyInvalidatorTest; | 
|   46  |   46  | 
|   47   // Helper that monitors the status of a single |InvalidationService|. |   47   // Helper that monitors the status of a single |InvalidationService|. | 
|   48   class InvalidationServiceObserver; |   48   class InvalidationServiceObserver; | 
|   49  |   49  | 
|   50   // Status updates received from |InvalidationServiceObserver|s. |   50   // Status updates received from |InvalidationServiceObserver|s. | 
|   51   void OnInvalidationServiceConnected( |   51   void OnInvalidationServiceConnected( | 
|   52       invalidation::InvalidationService* invalidation_service); |   52       invalidation::InvalidationService* invalidation_service); | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   94   // The current |CloudPolicyInvalidator|. NULL if no connected invalidation |   94   // The current |CloudPolicyInvalidator|. NULL if no connected invalidation | 
|   95   // service is available. |   95   // service is available. | 
|   96   scoped_ptr<CloudPolicyInvalidator> invalidator_; |   96   scoped_ptr<CloudPolicyInvalidator> invalidator_; | 
|   97  |   97  | 
|   98   DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInvalidator); |   98   DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInvalidator); | 
|   99 }; |   99 }; | 
|  100  |  100  | 
|  101 }  // namespace policy |  101 }  // namespace policy | 
|  102  |  102  | 
|  103 #endif  // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ |  103 #endif  // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INVALIDATOR_H_ | 
| OLD | NEW |