| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 module chrome.mojom; | |
| 6 | |
| 7 import "url/mojo/url.mojom"; | |
| 8 | |
| 9 // The install state of the search provider (not installed, installed, default). | |
| 10 enum InstallState { | |
| 11 // Equates to an access denied error. | |
| 12 DENIED = -1, | |
| 13 | |
| 14 // DON'T CHANGE THE VALUES BELOW. | |
| 15 // All of the following values are manidated by the | |
| 16 // spec for window.external.IsSearchProviderInstalled. | |
| 17 | |
| 18 // The search provider is not installed. | |
| 19 NOT_INSTALLED = 0, | |
| 20 | |
| 21 // The search provider is in the user's set but is not | |
| 22 INSTALLED_BUT_NOT_DEFAULT = 1, | |
| 23 | |
| 24 // The search provider is set as the user's default. | |
| 25 INSTALLED_AS_DEFAULT = 2 | |
| 26 }; | |
| 27 | |
| 28 interface SearchProviderInstallState { | |
| 29 // Find out if the given url's security origin is installed as a search | |
| 30 // provider. The |page_url| is the requesting page and the |inquiry_url| is | |
| 31 // the search provider (e.g. www.google.com), expressed as a security origin | |
| 32 // URL. | |
| 33 [Sync] | |
| 34 GetInstallState( | |
| 35 url.mojom.Url page_url, | |
| 36 url.mojom.Url inquiry_url) => (InstallState install); | |
| 37 }; | |
| OLD | NEW |