blob: 9993e75d6a8be352ac58ecbab9ae4c6afa56028f [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_PREFS_H_
#define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_PREFS_H_
#include <vector>
class PrefRegistrySimple;
class PrefService;
namespace omnibox {
// Histograms being recorded when visibility of suggestion group IDs change.
extern const char kToggleSuggestionGroupIdOffHistogram[];
extern const char kToggleSuggestionGroupIdOnHistogram[];
// Alphabetical list of preference names specific to the omnibox component.
// Keep alphabetized, and document each in the .cc file.
extern const char kDocumentSuggestEnabled[];
extern const char kOmniboxHiddenGroupIds[];
extern const char kPreventUrlElisionsInOmnibox[];
extern const char kZeroSuggestCachedResults[];
void RegisterProfilePrefs(PrefRegistrySimple* registry);
// Returns whether the given suggestion group ID is allowed to appear in the
// results.
bool IsSuggestionGroupIdHidden(PrefService* prefs, int suggestion_group_id);
// Allows suggestions with the given suggestion group ID to appear in the
// results if they currently are not allowed to or prevents them from
// appearing in the results if they are currently permitted to.
void ToggleSuggestionGroupIdVisibility(PrefService* prefs,
int suggestion_group_id);
} // namespace omnibox
#endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_PREFS_H_