[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / components / open_from_clipboard / clipboard_url_provider.h
blob73be03dacef21896415aa8b91e9191a66a6a3def
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/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_