OLD | NEW |
(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 COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_ |
| 6 #define COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/clipboard/public/interfaces/clipboard.mojom.h" |
| 10 #include "services/shell/public/cpp/interface_factory.h" |
| 11 #include "services/shell/public/cpp/shell_client.h" |
| 12 #include "services/tracing/public/cpp/tracing_impl.h" |
| 13 |
| 14 namespace clipboard { |
| 15 |
| 16 class ClipboardApplicationDelegate |
| 17 : public shell::ShellClient, |
| 18 public shell::InterfaceFactory<mojo::Clipboard> { |
| 19 public: |
| 20 ClipboardApplicationDelegate(); |
| 21 ~ClipboardApplicationDelegate() override; |
| 22 |
| 23 // mojo::ShellClient implementation. |
| 24 void Initialize(shell::Connector* connector, |
| 25 const shell::Identity& identity, |
| 26 uint32_t id) override; |
| 27 bool AcceptConnection(shell::Connection* connection) override; |
| 28 |
| 29 // InterfaceFactory<Clipboard> implementation. |
| 30 void Create(shell::Connection* connection, |
| 31 mojo::ClipboardRequest request) override; |
| 32 |
| 33 private: |
| 34 mojo::TracingImpl tracing_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ClipboardApplicationDelegate); |
| 37 }; |
| 38 |
| 39 } // namespace clipboard |
| 40 |
| 41 #endif // COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_ |
OLD | NEW |