OLD | NEW |
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008-2009 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 #include "chrome/browser/history/history_publisher.h" | 5 #include "chrome/browser/history/history_publisher.h" |
6 | 6 |
7 namespace history { | 7 namespace history { |
8 | 8 |
9 const char* HistoryPublisher::kThumbnailImageFormat = "image/jpeg"; | 9 const char* const HistoryPublisher::kThumbnailImageFormat = "image/jpeg"; |
10 | 10 |
11 void HistoryPublisher::PublishPageThumbnail( | 11 void HistoryPublisher::PublishPageThumbnail( |
12 const std::vector<unsigned char>& thumbnail, const GURL& url, | 12 const std::vector<unsigned char>& thumbnail, const GURL& url, |
13 const base::Time& time) const { | 13 const base::Time& time) const { |
14 PageData page_data = { | 14 PageData page_data = { |
15 time, | 15 time, |
16 url, | 16 url, |
17 NULL, | 17 NULL, |
18 NULL, | 18 NULL, |
19 kThumbnailImageFormat, | 19 kThumbnailImageFormat, |
(...skipping 13 matching lines...) Expand all Loading... |
33 contents.c_str(), | 33 contents.c_str(), |
34 title.c_str(), | 34 title.c_str(), |
35 NULL, | 35 NULL, |
36 NULL, | 36 NULL, |
37 }; | 37 }; |
38 | 38 |
39 PublishDataToIndexers(page_data); | 39 PublishDataToIndexers(page_data); |
40 } | 40 } |
41 | 41 |
42 } // namespace history | 42 } // namespace history |
OLD | NEW |