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

Unified Diff: chrome/browser/chromeos/policy/remote_commands/affiliated_remote_commands_invalidator.h

Issue 1094493003: Initial RemoteCommandsInvalidator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fixes addressing #7 and #8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/remote_commands/affiliated_remote_commands_invalidator.h
diff --git a/chrome/browser/chromeos/policy/remote_commands/affiliated_remote_commands_invalidator.h b/chrome/browser/chromeos/policy/remote_commands/affiliated_remote_commands_invalidator.h
new file mode 100644
index 0000000000000000000000000000000000000000..c981377820709fc2b3399d0293bc87aefab35340
--- /dev/null
+++ b/chrome/browser/chromeos/policy/remote_commands/affiliated_remote_commands_invalidator.h
@@ -0,0 +1,42 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_
+#define CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provider.h"
bartfab (slow) 2015/05/15 16:23:54 Nit: Not used.
binjin 2015/05/15 16:27:02 It's used since we inherit from AffiliatedInvalida
bartfab (slow) 2015/05/15 16:30:31 Sorry, doing reviews while in a meeting... I am a
+
+namespace policy {
+
+class CloudPolicyCore;
+class RemoteCommandsInvalidatorImpl;
+
+// This is a wrapper class to be used for device commands and device-local
+// account commands.
+class AffiliatedRemoteCommandsInvalidator
+ : public AffiliatedInvalidationServiceProvider::Consumer {
+ public:
+ AffiliatedRemoteCommandsInvalidator(
+ CloudPolicyCore* core,
+ AffiliatedInvalidationServiceProvider* invalidation_service_provider);
+ ~AffiliatedRemoteCommandsInvalidator() override;
+
+ // AffiliatedInvalidationServiceProvider::Consumer:
+ void OnInvalidationServiceSet(
+ invalidation::InvalidationService* invalidation_service) override;
+
+ private:
+ CloudPolicyCore* const core_;
+ AffiliatedInvalidationServiceProvider* const invalidation_service_provider_;
+
+ scoped_ptr<RemoteCommandsInvalidatorImpl> invalidator_;
+
+ DISALLOW_COPY_AND_ASSIGN(AffiliatedRemoteCommandsInvalidator);
+};
+
+} // namespace policy
+
+#endif // CHROME_BROWSER_CHROMEOS_POLICY_REMOTE_COMMANDS_AFFILIATED_REMOTE_COMMANDS_INVALIDATOR_H_

Powered by Google App Engine
This is Rietveld 408576698