| Index: components/clipboard/clipboard_application_delegate.cc
|
| diff --git a/components/clipboard/clipboard_application_delegate.cc b/components/clipboard/clipboard_application_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d9cc01dc50c8ef2942b4ba718ff9c9d7ebb2cf80
|
| --- /dev/null
|
| +++ b/components/clipboard/clipboard_application_delegate.cc
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +#include "components/clipboard/clipboard_application_delegate.h"
|
| +
|
| +#include <utility>
|
| +
|
| +#include "components/clipboard/clipboard_standalone_impl.h"
|
| +#include "services/shell/public/cpp/connection.h"
|
| +
|
| +namespace clipboard {
|
| +
|
| +ClipboardApplicationDelegate::ClipboardApplicationDelegate() {}
|
| +
|
| +ClipboardApplicationDelegate::~ClipboardApplicationDelegate() {}
|
| +
|
| +void ClipboardApplicationDelegate::Initialize(shell::Connector* connector,
|
| + const shell::Identity& identity,
|
| + uint32_t id) {
|
| + tracing_.Initialize(connector, identity.name());
|
| +}
|
| +
|
| +bool ClipboardApplicationDelegate::AcceptConnection(
|
| + shell::Connection* connection) {
|
| + connection->AddInterface(this);
|
| + return true;
|
| +}
|
| +
|
| +void ClipboardApplicationDelegate::Create(
|
| + shell::Connection* connection,
|
| + mojo::ClipboardRequest request) {
|
| + // TODO(erg): Write native implementations of the clipboard. For now, we
|
| + // just build a clipboard which doesn't interact with the system.
|
| + new clipboard::ClipboardStandaloneImpl(std::move(request));
|
| +}
|
| +
|
| +} // namespace clipboard
|
|
|