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

Side by Side Diff: components/clipboard/clipboard_application_delegate.h

Issue 1978763003: Readd the clipboard service and get it compiling again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add OWNERS to the interfaces directory. Created 4 years, 7 months 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698