Don't preload rarely seen large images
[chromium-blink-merge.git] / components / clipboard / clipboard_application_delegate.h
blob466a02c9ab8c813e4cfcd95f7229804d37b4d259
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.
5 #ifndef COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
6 #define COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_
8 #include "base/macros.h"
9 #include "components/clipboard/public/interfaces/clipboard.mojom.h"
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/interface_factory.h"
13 namespace mojo {
14 class ApplicationConnection;
17 namespace clipboard {
19 class ClipboardApplicationDelegate
20 : public mojo::ApplicationDelegate,
21 public mojo::InterfaceFactory<mojo::Clipboard> {
22 public:
23 ClipboardApplicationDelegate();
24 ~ClipboardApplicationDelegate() override;
26 // mojo::ApplicationDelegate implementation.
27 bool ConfigureIncomingConnection(
28 mojo::ApplicationConnection* connection) override;
30 // mojo::InterfaceFactory<mojo::Clipboard> implementation.
31 void Create(mojo::ApplicationConnection* connection,
32 mojo::InterfaceRequest<mojo::Clipboard> request) override;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ClipboardApplicationDelegate);
38 } // namespace clipboard
40 #endif // COMPONENTS_CLIPBOARD_CLIBPOARD_APPLICATION_DELEGATE_H_