| OLD | NEW |
| 1 // Copyright (c) 2010 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" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 39 void PublishPageContent(const base::Time& time, const GURL& url, | 39 void PublishPageContent(const base::Time& time, const GURL& url, |
| 40 const string16& title, | 40 const string16& title, |
| 41 const string16& contents) const; | 41 const string16& contents) const; |
| 42 void DeleteUserHistoryBetween(const base::Time& begin_time, | 42 void DeleteUserHistoryBetween(const base::Time& begin_time, |
| 43 const base::Time& end_time) const; | 43 const base::Time& end_time) const; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 struct PageData { | 46 struct PageData { |
| 47 const base::Time& time; | 47 const base::Time& time; |
| 48 const GURL& url; | 48 const GURL& url; |
| 49 const wchar_t* html; | 49 const char16* html; |
| 50 const wchar_t* title; | 50 const char16* title; |
| 51 const char* thumbnail_format; | 51 const char* thumbnail_format; |
| 52 const std::vector<unsigned char>* thumbnail; | 52 const std::vector<unsigned char>* thumbnail; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 void PublishDataToIndexers(const PageData& page_data) const; | 55 void PublishDataToIndexers(const PageData& page_data) const; |
| 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(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 75 | 75 |
| 76 // The format of the thumbnail we pass to indexers. | 76 // The format of the thumbnail we pass to indexers. |
| 77 static const char* const kThumbnailImageFormat; | 77 static const char* const kThumbnailImageFormat; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); | 79 DISALLOW_COPY_AND_ASSIGN(HistoryPublisher); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace history | 82 } // namespace history |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ | 84 #endif // CHROME_BROWSER_HISTORY_HISTORY_PUBLISHER_H_ |
| OLD | NEW |