blob: 132c5f077eed5a6d0fcc1140678236eeec5f9b8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// 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";
[
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 is called by Chrome when the users delete their history.
// |begin_time| - Represents the start time from which the history needs to be
// deleted. It is given in UTC.
// |end_time| - Represents the end time until when the history needs to be
// deleted. It is given in UTC
// If both begin_time and end_time are '0', full user history needs to be
// deleted.
HRESULT DeleteUserHistoryBetween([in] VARIANT begin_time,
[in] VARIANT end_time);
};
|