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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/clipboard/clipboard_application_delegate.h
diff --git a/components/clipboard/clipboard_application_delegate.h b/components/clipboard/clipboard_application_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..73433c3305690d6e3e71a61447a8c27aade6019b
--- /dev/null
+++ b/components/clipboard/clipboard_application_delegate.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium 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 COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
+#define COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
+
+#include "base/macros.h"
+#include "components/clipboard/public/interfaces/clipboard.mojom.h"
+#include "services/shell/public/cpp/interface_factory.h"
+#include "services/shell/public/cpp/shell_client.h"
+#include "services/tracing/public/cpp/tracing_impl.h"
+
+namespace clipboard {
+
+class ClipboardApplicationDelegate
+ : public shell::ShellClient,
+ public shell::InterfaceFactory<mojo::Clipboard> {
+ public:
+ ClipboardApplicationDelegate();
+ ~ClipboardApplicationDelegate() override;
+
+ // mojo::ShellClient implementation.
+ void Initialize(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override;
+ bool AcceptConnection(shell::Connection* connection) override;
+
+ // InterfaceFactory<Clipboard> implementation.
+ void Create(shell::Connection* connection,
+ mojo::ClipboardRequest request) override;
+
+ private:
+ mojo::TracingImpl tracing_;
+
+ DISALLOW_COPY_AND_ASSIGN(ClipboardApplicationDelegate);
+};
+
+} // namespace clipboard
+
+#endif // COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698