Permission message rules: Each rule must have >= 1 required permissions
[chromium-blink-merge.git] / components / omnibox / browser / clipboard_url_provider.h
blob583711c42cde14c352e3f9079ed4c2006ef3d7f0
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_OMNIBOX_BROWSER_CLIPBOARD_URL_PROVIDER_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_CLIPBOARD_URL_PROVIDER_H_
8 #include "base/macros.h"
9 #include "components/omnibox/browser/autocomplete_provider.h"
11 class AutocompleteProviderClient;
12 class ClipboardRecentContent;
14 // Autocomplete provider offering content based on the clipboard's content.
15 class ClipboardURLProvider : public AutocompleteProvider {
16 public:
17 ClipboardURLProvider(AutocompleteProviderClient* client,
18 ClipboardRecentContent* clipboard_content);
20 // AutocompleteProvider implementation.
21 void Start(const AutocompleteInput& input, bool minimal_changes) override;
23 private:
24 ~ClipboardURLProvider() override;
26 AutocompleteProviderClient* client_;
27 ClipboardRecentContent* clipboard_content_;
29 DISALLOW_COPY_AND_ASSIGN(ClipboardURLProvider);
32 #endif // COMPONENTS_OMNIBOX_BROWSER_CLIPBOARD_URL_PROVIDER_H_