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