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

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

Issue 1459453003: mandoline: write this after lunch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TracingImpls to mus and mash, fix naming. Created 5 years, 1 month 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
« no previous file with comments | « components/clipboard/clipboard_application_delegate.h ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/clipboard/clipboard_application_delegate.h" 5 #include "components/clipboard/clipboard_application_delegate.h"
6 6
7 #include "components/clipboard/clipboard_standalone_impl.h" 7 #include "components/clipboard/clipboard_standalone_impl.h"
8 #include "mojo/application/public/cpp/application_connection.h" 8 #include "mojo/application/public/cpp/application_connection.h"
9 9
10 namespace clipboard { 10 namespace clipboard {
11 11
12 ClipboardApplicationDelegate::ClipboardApplicationDelegate() {} 12 ClipboardApplicationDelegate::ClipboardApplicationDelegate() {}
13 13
14 ClipboardApplicationDelegate::~ClipboardApplicationDelegate() {} 14 ClipboardApplicationDelegate::~ClipboardApplicationDelegate() {}
15 15
16 void ClipboardApplicationDelegate::Initialize(mojo::ApplicationImpl* app) {
17 tracing_.Initialize(app);
18 }
19
16 bool ClipboardApplicationDelegate::ConfigureIncomingConnection( 20 bool ClipboardApplicationDelegate::ConfigureIncomingConnection(
17 mojo::ApplicationConnection* connection) { 21 mojo::ApplicationConnection* connection) {
18 connection->AddService(this); 22 connection->AddService(this);
19 return true; 23 return true;
20 } 24 }
21 25
22 void ClipboardApplicationDelegate::Create( 26 void ClipboardApplicationDelegate::Create(
23 mojo::ApplicationConnection* connection, 27 mojo::ApplicationConnection* connection,
24 mojo::InterfaceRequest<mojo::Clipboard> request) { 28 mojo::InterfaceRequest<mojo::Clipboard> request) {
25 // TODO(erg): Write native implementations of the clipboard. For now, we 29 // TODO(erg): Write native implementations of the clipboard. For now, we
26 // just build a clipboard which doesn't interact with the system. 30 // just build a clipboard which doesn't interact with the system.
27 new clipboard::ClipboardStandaloneImpl(request.Pass()); 31 new clipboard::ClipboardStandaloneImpl(request.Pass());
28 } 32 }
29 33
30 } // namespace clipboard 34 } // namespace clipboard
OLDNEW
« no previous file with comments | « components/clipboard/clipboard_application_delegate.h ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698