| // Copyright 2016 The Fuchsia 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 PERIDOT_BIN_AGENTS_CLIPBOARD_CLIPBOARD_AGENT_H_ | 
 | #define PERIDOT_BIN_AGENTS_CLIPBOARD_CLIPBOARD_AGENT_H_ | 
 |  | 
 | #include <string> | 
 |  | 
 | #include <fuchsia/cpp/modular.h> | 
 | #include "lib/fidl/cpp/binding_set.h" | 
 | #include "lib/fxl/macros.h" | 
 | #include "peridot/bin/agents/clipboard/clipboard_storage.h" | 
 |  | 
 | namespace modular { | 
 |  | 
 | // An agent responsible for providing the Clipboard service. | 
 | class ClipboardImpl : Clipboard { | 
 |  public: | 
 |   explicit ClipboardImpl(LedgerClient* ledger_client); | 
 |   ~ClipboardImpl(); | 
 |  | 
 |   void Connect(fidl::InterfaceRequest<Clipboard> request); | 
 |  | 
 |  private: | 
 |   // |Clipboard| | 
 |   void Push(fidl::StringPtr text) override; | 
 |  | 
 |   // |Clipboard| | 
 |   void Peek(PeekCallback callback) override; | 
 |  | 
 |   // The storage instance that manages interactions with the Ledger. | 
 |   ClipboardStorage storage_; | 
 |  | 
 |   // The bindings set containing the outgoing services request from the agent | 
 |   // driver. | 
 |   fidl::BindingSet<Clipboard> bindings_; | 
 |  | 
 |   FXL_DISALLOW_COPY_AND_ASSIGN(ClipboardImpl); | 
 |   friend class ClipboardImplTest; | 
 | }; | 
 |  | 
 | }  // namespace modular | 
 |  | 
 | #endif  // PERIDOT_BIN_AGENTS_CLIPBOARD_CLIPBOARD_AGENT_H_ |