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

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

Issue 1115363002: mojo: Use ContentHandlers to bundle multiple Applications into a module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename redirect -> alias Created 5 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
« no previous file with comments | « components/clipboard/BUILD.gn ('k') | components/clipboard/clipboard_application_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h"
11 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
12
13 namespace mojo {
14 class ApplicationConnection;
15 }
16
17 namespace clipboard {
18
19 class ClipboardApplicationDelegate
20 : public mojo::ApplicationDelegate,
21 public mojo::InterfaceFactory<mojo::Clipboard> {
22 public:
23 ClipboardApplicationDelegate();
24 ~ClipboardApplicationDelegate() override;
25
26 // mojo::ApplicationDelegate implementation.
27 bool ConfigureIncomingConnection(
28 mojo::ApplicationConnection* connection) override;
29
30 // mojo::InterfaceFactory<mojo::Clipboard> implementation.
31 void Create(mojo::ApplicationConnection* connection,
32 mojo::InterfaceRequest<mojo::Clipboard> request) override;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ClipboardApplicationDelegate);
36 };
37
38 } // namespace clipboard
39
40 #endif // COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/clipboard/BUILD.gn ('k') | components/clipboard/clipboard_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698