Chromium Code Reviews| Index: chrome/common/instant.mojom |
| diff --git a/chrome/common/instant.mojom b/chrome/common/instant.mojom |
| index 3935339e2d3330fa915abbdee2e9be117069f655..bd0465bebe1e1c0fb0db68dbdc7e00dc2d372e8a 100644 |
| --- a/chrome/common/instant.mojom |
| +++ b/chrome/common/instant.mojom |
| @@ -17,6 +17,21 @@ enum OmniboxFocusState; |
| [Native] |
| enum NTPTileSource; |
| +// Interface used to connect to the embedded search interface. This is a |
| +// separate interface such that a reverse connection (|client| below) can be |
| +// passed when connecting. |
| +interface EmbeddedSearchConnector { |
| + // Connect to the interface. |instant| is the connection which the client will |
| + // use to query the embedded search interface. |client| is the connection used |
| + // by the embedded search interface implementation to push browser state |
| + // updates to the client. |
| + Connect(associated Instant& instant, associated SearchBox client); |
| +}; |
| + |
| +// TODO(tibell): Rename this to EmbeddedSearch. |
| +// |
| +// Browser interface to support embedded search. Render frames connect to this |
| +// interface to query browser data, such as the most visited pages. |
| interface Instant { |
| // Tells InstantExtended whether the embedded search API is supported. |
| // See http://dev.chromium.org/embeddedsearch |
| @@ -78,6 +93,10 @@ struct EmbeddedSearchRequestParams; |
| [Native] |
| struct ThemeBackgroundInfo; |
| +// TODO(tibell): Rename this to EmbeddedSearchClient. |
| +// |
| +// Renderer interface used by the browser to push updates to the client. For |
| +// example, the browser will tell the frame if the omnibox got focus. |
| interface SearchBox { |
| SetPageSequenceNumber(int32 page_seq_no); |
| @@ -97,6 +116,8 @@ interface SearchBox { |
| ThemeChanged(ThemeBackgroundInfo value); |
| + // TODO(treib): Remove the *Result methods and instead add return values to |
| + // the correspnding methods in the Instant interface above. |
|
Marc Treib
2017/02/09 09:30:47
Ah, is this something made possible by Mojo? Nice!
tibell
2017/02/09 22:32:01
Yup! It's convenient and also removes the need to
|
| HistorySyncCheckResult(bool sync_history); |
| ChromeIdentityCheckResult(mojo.common.mojom.String16 identity, |