Home | History | Annotate | Download | only in history
      1 // Copyright (c) 2008 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 import "oaidl.idl";
      6 import "ocidl.idl";
      7 
      8 // This class is deprecated and will be removed once all existing
      9 // users are gone: see http://crbug.com/161116.
     10 
     11 [
     12   object,
     13   uuid(9C1100DD-51D4-4827-AE9F-3B8FAC4AED72),
     14   oleautomation,
     15   nonextensible,
     16   pointer_default(unique)
     17 ]
     18 interface IChromeHistoryIndexer : IUnknown {
     19   // This is the method called by Chrome to send content and thumbnail of the
     20   // page to be indexed. The html content and thumbnail for the same url
     21   // are sent at different points in time. The thumbnail_format and
     22   // thumbnail parameters will be NULL when sending only the content.
     23   // |time| - The last time at which user visited the page. The time is in UTC.
     24   // |url| - The url of the page being published for indexing.
     25   // |html| - The html content of the page being published for indexing.
     26   // |title| - The url of the page being published for indexing.
     27   // |thumbnail_format| - The format of the thumbnail image. It is currently
     28   //                      "image/jpeg", indicating that the thumbail is in jpeg
     29   //                      format.
     30   // |thumbnail| - This is an array of bytes that represents the thumbnail in
     31   //               the format specified by the "thumbnail_format" parameter.
     32   HRESULT SendPageData([in] VARIANT time,
     33                        [in] BSTR url,
     34                        [in] BSTR html,
     35                        [in] BSTR title,
     36                        [in] BSTR thumbnail_format,
     37                        [in] VARIANT thumbnail);
     38 
     39   // This method isn't used anymore.
     40   HRESULT DeleteUserHistoryBetween([in] VARIANT begin_time,
     41                                    [in] VARIANT end_time);
     42 };
     43 
     44 
     45 // This dummy library statement enforces the creation of a history_indexer.tlb.
     46 // This is necessary since MSVC assumes a .idl always creates a .tlb. Otherwise,
     47 // this .idl is always recompiled, giving many engs a headache.
     48 [
     49   uuid(A5C5B8BE-E7E5-4cb9-A13B-B063361E7B6D),
     50   helpstring("Dummy library")
     51 ]
     52 library history_indexerLib
     53 {
     54 };
     55