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

Unified Diff: components/arc/clipboard/clipboard_bridge.h

Issue 1495723004: Minimum implementation of ARC clipboard Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the fakes Created 5 years 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: components/arc/clipboard/clipboard_bridge.h
diff --git a/components/arc/clipboard/clipboard_bridge.h b/components/arc/clipboard/clipboard_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..f92a11e0679fb6168735155ccae76e566eff6898
--- /dev/null
+++ b/components/arc/clipboard/clipboard_bridge.h
@@ -0,0 +1,34 @@
+// 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 COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_H_
+#define COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_H_
+
+#include "base/macros.h"
+#include "components/arc/arc_bridge_service.h"
+
+namespace arc {
+
+class ArcBridgeService;
+
+// The ClipboardBridge is responsible for sending clipboard content changes
+// from Android to Chrome and vice versa.
+class ClipboardBridge {
+ public:
+ virtual ~ClipboardBridge() {}
+
+ // Creates a new instance of ClipboardBridge. It will register an
+ // ClipboardObserver with the ArcBridgeService.
+ static scoped_ptr<ClipboardBridge> Create(
+ ArcBridgeService* arc_bridge_service);
+
+ protected:
+ ClipboardBridge() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ClipboardBridge);
+};
+
+} // namespace arc
+#endif // COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698