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.
5 #ifndef COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
6 #define COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
8 #include "base/macros.h"
9 #include "components/clipboard/public/interfaces/clipboard.mojom.h"
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/interface_factory.h"
14 class ApplicationConnection
;
19 class ClipboardApplicationDelegate
20 : public mojo::ApplicationDelegate
,
21 public mojo::InterfaceFactory
<mojo::Clipboard
> {
23 ClipboardApplicationDelegate();
24 ~ClipboardApplicationDelegate() override
;
26 // mojo::ApplicationDelegate implementation.
27 bool ConfigureIncomingConnection(
28 mojo::ApplicationConnection
* connection
) override
;
30 // mojo::InterfaceFactory<mojo::Clipboard> implementation.
31 void Create(mojo::ApplicationConnection
* connection
,
32 mojo::InterfaceRequest
<mojo::Clipboard
> request
) override
;
35 DISALLOW_COPY_AND_ASSIGN(ClipboardApplicationDelegate
);
38 } // namespace clipboard
40 #endif // COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_