Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: test/win/idl-rules/history_indexer.idl

Issue 9990006: ninja windows: Support magic idl build rules (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: rename helper Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/win/idl-rules/basic-idl.gyp ('k') | test/win/idl-rules/history_indexer_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/idl-rules/history_indexer.idl
diff --git a/test/win/idl-rules/history_indexer.idl b/test/win/idl-rules/history_indexer.idl
new file mode 100644
index 0000000000000000000000000000000000000000..cdcebeb29f601b962affc4de2e2e1b3211056ed7
--- /dev/null
+++ b/test/win/idl-rules/history_indexer.idl
@@ -0,0 +1,58 @@
+// Copyright (c) 2012 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";
Nico 2012/04/05 18:02:24 these are system idl files?
scottmg 2012/04/05 18:14:26 Yes.
+import "ocidl.idl";
+
+[
+ object,
+ uuid(9C1100DD-51D4-4827-AE9F-3B8FAC4AED72),
+ oleautomation,
+ nonextensible,
+ pointer_default(unique)
+]
+interface IChromeHistoryIndexer : IUnknown {
Nico 2012/04/05 18:02:24 Can you simplify this file a bit? (remove comments
scottmg 2012/04/05 18:14:26 Done.
+ // 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);
+};
+
+
+// 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
+{
+};
+
« no previous file with comments | « test/win/idl-rules/basic-idl.gyp ('k') | test/win/idl-rules/history_indexer_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698