Home | History | Annotate | Download | only in common
      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.
      4 
      5 #ifndef CHROME_COMMON_SEARCH_PROVIDER_H_
      6 #define CHROME_COMMON_SEARCH_PROVIDER_H_
      7 
      8 namespace search_provider {
      9 
     10 // The type of OSDD that the renderer is giving to the browser.
     11 enum OSDDType {
     12   // The Open Search Description URL was detected automatically.
     13   AUTODETECTED_PROVIDER,
     14 
     15   // The Open Search Description URL was given by Javascript.
     16   EXPLICIT_PROVIDER,
     17 };
     18 
     19 // The install state of the search provider (not installed, installed, default).
     20 enum InstallState {
     21   // Equates to an access denied error.
     22   DENIED = -1,
     23 
     24   // DON'T CHANGE THE VALUES BELOW.
     25   // All of the following values are manidated by the
     26   // spec for window.external.IsSearchProviderInstalled.
     27 
     28   // The search provider is not installed.
     29   NOT_INSTALLED = 0,
     30 
     31   // The search provider is in the user's set but is not
     32   INSTALLED_BUT_NOT_DEFAULT = 1,
     33 
     34   // The search provider is set as the user's default.
     35   INSTALLED_AS_DEFAULT = 2
     36 };
     37 
     38 }  // namespace search_provider
     39 
     40 #endif  // CHROME_COMMON_SEARCH_PROVIDER_H_
     41