cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / chromeos / policy / remote_commands / affiliated_remote_commands_invalidator.h
blobc981377820709fc2b3399d0293bc87aefab35340
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"
12 namespace policy {
14 class CloudPolicyCore;
15 class RemoteCommandsInvalidatorImpl;
17 // This is a wrapper class to be used for device commands and device-local
18 // account commands.
19 class AffiliatedRemoteCommandsInvalidator
20 : public AffiliatedInvalidationServiceProvider::Consumer {
21 public:
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;
31 private:
32 CloudPolicyCore* const core_;
33 AffiliatedInvalidationServiceProvider* const invalidation_service_provider_;
35 scoped_ptr<RemoteCommandsInvalidatorImpl> invalidator_;
37 DISALLOW_COPY_AND_ASSIGN(AffiliatedRemoteCommandsInvalidator);
40 } // namespace policy
42 #endif // CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_