Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: chrome/browser/policy/cloud/remote_commands_invalidator_impl.h

Issue 1094493003: Initial RemoteCommandsInvalidator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: rename / move files Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_REMOTE_COMMANDS_INVALIDATOR_IMPL_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_REMOTE_COMMANDS_INVALIDATOR_IMPL_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/policy/cloud/remote_commands_invalidator.h"
10 #include "components/policy/core/common/cloud/cloud_policy_core.h"
11 #include "components/policy/core/common/cloud/cloud_policy_store.h"
12
13 namespace invalidation {
14 class InvalidationService;
bartfab (slow) 2015/05/15 15:55:08 Nit: Not used.
binjin 2015/05/15 16:12:40 Done.
15 }
16
17 namespace policy {
18
19 // Implementation of invalidator for remote commands services. This class
20 // listens to events from CloudPolicyCore and CloudPolicyStore and interact
bartfab (slow) 2015/05/15 15:55:08 Nit: s/and interact/and builds/ would be better. A
binjin 2015/05/15 16:12:40 Done.
21 // with RemoteCommandsInvalidator to complete the tasks.
22 class RemoteCommandsInvalidatorImpl : public RemoteCommandsInvalidator,
23 public CloudPolicyCore::Observer,
24 public CloudPolicyStore::Observer {
25 public:
26 explicit RemoteCommandsInvalidatorImpl(CloudPolicyCore* core);
27
28 // RemoteCommandsInvalidator:
29 void OnInitialize() override;
30 void OnShutdown() override;
31 void OnStart() override;
32 void OnStop() override;
33 void DoRemoteCommandsFetch() override;
34
35 // CloudPolicyCore::Observer:
36 void OnCoreConnected(CloudPolicyCore* core) override;
37 void OnRefreshSchedulerStarted(CloudPolicyCore* core) override;
38 void OnCoreDisconnecting(CloudPolicyCore* core) override;
39 void OnRemoteCommandsServiceStarted(CloudPolicyCore* core) override;
40
41 // CloudPolicyStore::Observer:
42 void OnStoreLoaded(CloudPolicyStore* store) override;
43 void OnStoreError(CloudPolicyStore* store) override;
44
45 private:
46 CloudPolicyCore* const core_;
47
48 DISALLOW_COPY_AND_ASSIGN(RemoteCommandsInvalidatorImpl);
49 };
50
51 } // namespace policy
52
53 #endif // CHROME_BROWSER_POLICY_CLOUD_REMOTE_COMMANDS_INVALIDATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698