| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include "base/scoped_comptr_win.h" | 15 #include "base/win/scoped_comptr.h" |
| 16 #include "history_indexer.h" | 16 #include "history_indexer.h" |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 class Time; | 22 class Time; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace history { | 25 namespace history { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
| 58 // Initializes the indexer_list_ with the list of indexers that registered | 58 // Initializes the indexer_list_ with the list of indexers that registered |
| 59 // with us to index history. Returns true if there are any registered. | 59 // with us to index history. Returns true if there are any registered. |
| 60 bool ReadRegisteredIndexersFromRegistry(); | 60 bool ReadRegisteredIndexersFromRegistry(); |
| 61 | 61 |
| 62 // Converts time represented by the Time class object to variant time in UTC. | 62 // Converts time represented by the Time class object to variant time in UTC. |
| 63 // Returns '0' if the time object is NULL. | 63 // Returns '0' if the time object is NULL. |
| 64 static double TimeToUTCVariantTime(const base::Time& time); | 64 static double TimeToUTCVariantTime(const base::Time& time); |
| 65 | 65 |
| 66 typedef std::vector< ScopedComPtr<IChromeHistoryIndexer> > IndexerList; | 66 typedef std::vector< base::win::ScopedComPtr< |
| 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; |
| 74 #endif | 75 #endif |
| 75 | 76 |
| 76 // The format of the thumbnail we pass to indexers. | 77 // The format of the thumbnail we pass to indexers. |
| 77 static const char* const kThumbnailImageFormat; | 78 static const char* const kThumbnailImageFormat; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); | 80 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace history | 83 } // namespace history |
| 83 | 84 |
| 84 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ | 85 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ |
| OLD | NEW |