OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 | 12 |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include "base/win/scoped_com_initializer.h" |
14 #include "base/win/scoped_comptr.h" | 15 #include "base/win/scoped_comptr.h" |
15 #include "history_indexer.h" | 16 #include "history_indexer.h" |
16 #endif | 17 #endif |
17 | 18 |
18 class GURL; | 19 class GURL; |
19 | 20 |
20 namespace base { | 21 namespace base { |
21 class Time; | 22 class Time; |
22 } | 23 } |
23 | 24 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 typedef std::vector< base::win::ScopedComPtr< | 66 typedef std::vector< base::win::ScopedComPtr< |
66 IChromeHistoryIndexer> > IndexerList; | 67 IChromeHistoryIndexer> > IndexerList; |
67 | 68 |
68 // The list of indexers registered to receive history data from us. | 69 // The list of indexers registered to receive history data from us. |
69 IndexerList indexers_; | 70 IndexerList indexers_; |
70 | 71 |
71 // The Registry key under HKCU where the indexers need to register their | 72 // The Registry key under HKCU where the indexers need to register their |
72 // CLSID. | 73 // CLSID. |
73 static const wchar_t* const kRegKeyRegisteredIndexersInfo; | 74 static const wchar_t* const kRegKeyRegisteredIndexersInfo; |
| 75 |
| 76 base::win::ScopedCOMInitializer com_initializer_; |
74 #endif | 77 #endif |
75 | 78 |
76 // The format of the thumbnail we pass to indexers. | 79 // The format of the thumbnail we pass to indexers. |
77 static const char* const kThumbnailImageFormat; | 80 static const char* const kThumbnailImageFormat; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); | 82 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); |
80 }; | 83 }; |
81 | 84 |
82 } // namespace history | 85 } // namespace history |
83 | 86 |
84 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ | 87 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ |
OLD | NEW |