1 // Copyright (c) 2012 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 CHROME_COMMON_SEARCH_PROVIDER_H_
6 #define CHROME_COMMON_SEARCH_PROVIDER_H_
8 namespace search_provider
{
10 // The type of OSDD that the renderer is giving to the browser.
12 // The Open Search Description URL was detected automatically.
13 AUTODETECTED_PROVIDER
,
15 // The Open Search Description URL was given by Javascript.
17 OSDD_TYPE_LAST
= EXPLICIT_PROVIDER
20 // The install state of the search provider (not installed, installed, default).
22 // Equates to an access denied error.
25 // DON'T CHANGE THE VALUES BELOW.
26 // All of the following values are manidated by the
27 // spec for window.external.IsSearchProviderInstalled.
29 // The search provider is not installed.
32 // The search provider is in the user's set but is not
33 INSTALLED_BUT_NOT_DEFAULT
= 1,
35 // The search provider is set as the user's default.
36 INSTALLED_AS_DEFAULT
= 2,
38 INSTALLED_STATE_LAST
= INSTALLED_AS_DEFAULT
41 } // namespace search_provider
43 #endif // CHROME_COMMON_SEARCH_PROVIDER_H_