Upstream iOS' Open from Clipboard component.
[chromium-blink-merge.git] / components / open_from_clipboard / clipboard_url_provider.h
blob38122ccdf7e6f3d1e7da935311fa50fc7c645904
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_OPEN_FROM_CLIPBOARD_CLIPBOARD_URL_PROVIDER_H_
6 #define COMPONENTS_OPEN_FROM_CLIPBOARD_CLIPBOARD_URL_PROVIDER_H_
8 #include "components/omnibox/autocomplete_provider.h"
10 class ClipboardRecentContent;
12 // Autocomplete provider offering content based on the clipboard's content.
13 class ClipboardURLProvider : public AutocompleteProvider {
14 public:
15 ClipboardURLProvider(ClipboardRecentContent* clipboard_recent_content);
16 void Start(const AutocompleteInput& input,
17 bool minimal_changes,
18 bool called_due_to_focus) override;
20 private:
21 ~ClipboardURLProvider() override;
22 ClipboardRecentContent* clipboard_recent_content_;
24 DISALLOW_COPY_AND_ASSIGN(ClipboardURLProvider);
27 #endif // COMPONENTS_OPEN_FROM_CLIPBOARD_CLIPBOARD_URL_PROVIDER_H_