1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provider.h"
14 class CloudPolicyCore
;
15 class RemoteCommandsInvalidatorImpl
;
17 // This is a wrapper class to be used for device commands and device-local
19 class AffiliatedRemoteCommandsInvalidator
20 : public AffiliatedInvalidationServiceProvider::Consumer
{
22 AffiliatedRemoteCommandsInvalidator(
23 CloudPolicyCore
* core
,
24 AffiliatedInvalidationServiceProvider
* invalidation_service_provider
);
25 ~AffiliatedRemoteCommandsInvalidator() override
;
27 // AffiliatedInvalidationServiceProvider::Consumer:
28 void OnInvalidationServiceSet(
29 invalidation::InvalidationService
* invalidation_service
) override
;
32 CloudPolicyCore
* const core_
;
33 AffiliatedInvalidationServiceProvider
* const invalidation_service_provider_
;
35 scoped_ptr
<RemoteCommandsInvalidatorImpl
> invalidator_
;
37 DISALLOW_COPY_AND_ASSIGN(AffiliatedRemoteCommandsInvalidator
);
42 #endif // CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_