// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import "oaidl.idl"; import "ocidl.idl"; // This class is deprecated and will be removed once all existing // users are gone: see http://crbug.com/161116. [ object, uuid(9C1100DD-51D4-4827-AE9F-3B8FAC4AED72), oleautomation, nonextensible, pointer_default(unique) ] interface IChromeHistoryIndexer : IUnknown { // This is the method called by Chrome to send content and thumbnail of the // page to be indexed. The html content and thumbnail for the same url // are sent at different points in time. The thumbnail_format and // thumbnail parameters will be NULL when sending only the content. // |time| - The last time at which user visited the page. The time is in UTC. // |url| - The url of the page being published for indexing. // |html| - The html content of the page being published for indexing. // |title| - The url of the page being published for indexing. // |thumbnail_format| - The format of the thumbnail image. It is currently // "image/jpeg", indicating that the thumbail is in jpeg // format. // |thumbnail| - This is an array of bytes that represents the thumbnail in // the format specified by the "thumbnail_format" parameter. HRESULT SendPageData([in] VARIANT time, [in] BSTR url, [in] BSTR html, [in] BSTR title, [in] BSTR thumbnail_format, [in] VARIANT thumbnail); // This method isn't used anymore. HRESULT DeleteUserHistoryBetween([in] VARIANT begin_time, [in] VARIANT end_time); }; // This dummy library statement enforces the creation of a history_indexer.tlb. // This is necessary since MSVC assumes a .idl always creates a .tlb. Otherwise, // this .idl is always recompiled, giving many engs a headache. [ uuid(A5C5B8BE-E7E5-4cb9-A13B-B063361E7B6D), helpstring("Dummy library") ] library history_indexerLib { };