OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
elijahtaylor1
2015/12/15 01:17:05
I think we've developed a bit of an anti-pattern i
cnwan
2015/12/21 11:18:01
I am OK with Service/Manager/Bridge/...
I picked
| |
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 COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_ | |
6 #define COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "components/arc/arc_bridge_service.h" | |
12 #include "components/arc/clipboard/clipboard_bridge.h" | |
13 #include "components/arc/common/arc_bridge.mojom.h" | |
14 | |
15 namespace arc { | |
16 | |
17 class ClipboardBridgeImpl : public ClipboardBridge, | |
18 public ArcBridgeService::ClipboardObserver { | |
Luis Héctor Chávez
2015/12/16 23:16:23
Can you make this inherit ArcBridgeService::Observ
| |
19 public: | |
20 explicit ClipboardBridgeImpl(ArcBridgeService* bridge_service); | |
21 ~ClipboardBridgeImpl() override; | |
22 | |
23 // Implements ArcBridgeService::ClipboardObserver: | |
24 void OnSetClipboardContent(const std::string& text) override; | |
25 void OnGetClipboardContent() override; | |
26 | |
27 private: | |
28 ArcBridgeService* bridge_service_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(ClipboardBridgeImpl); | |
31 }; | |
32 | |
33 } // namespace arc | |
34 | |
35 #endif // COMPONENTS_ARC_CLIPBOARD_CLIPBOARD_BRIDGE_IMPL_H_ | |
OLD | NEW |