Re-enable WebInputEventAuraTest.TestMakeWebKeyboardEventWindowsKeyCode
[chromium-blink-merge.git] / components / open_from_clipboard / clipboard_url_provider.h
blobaf69ae52ab9db977fcf5e60f893937fabff4eb02
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 "base/callback.h"
9 #include "components/omnibox/browser/autocomplete_provider.h"
11 class ClipboardRecentContent;
13 // Autocomplete provider offering content based on the clipboard's content.
14 class ClipboardURLProvider : public AutocompleteProvider {
15 public:
16 typedef base::Callback<AutocompleteMatch(const AutocompleteInput&)>
17 PlaceholderRequestCallback;
19 ClipboardURLProvider(
20 ClipboardRecentContent* clipboard_recent_content,
21 const PlaceholderRequestCallback& placeholder_match_getter);
23 // AutocompleteProvider implementation.
24 void Start(const AutocompleteInput& input, bool minimal_changes) override;
26 private:
27 ~ClipboardURLProvider() override;
29 ClipboardRecentContent* clipboard_recent_content_;
30 PlaceholderRequestCallback placeholder_match_getter_;
32 DISALLOW_COPY_AND_ASSIGN(ClipboardURLProvider);
35 #endif // COMPONENTS_OPEN_FROM_CLIPBOARD_CLIPBOARD_URL_PROVIDER_H_