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 #include "chrome/browser/history/history_publisher.h" | 5 #include "chrome/browser/history/history_publisher.h" |
6 | 6 |
7 #include <atlsafe.h> | 7 #include <atlsafe.h> |
8 #include <oleauto.h> | 8 #include <oleauto.h> |
9 #include <wtypes.h> | 9 #include <wtypes.h> |
10 | 10 |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time.h" | 13 #include "base/time.h" |
13 #include "base/utf_string_conversions.h" | |
14 #include "base/win/registry.h" | 14 #include "base/win/registry.h" |
15 #include "base/win/scoped_bstr.h" | 15 #include "base/win/scoped_bstr.h" |
16 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
17 #include "base/win/scoped_variant.h" | 17 #include "base/win/scoped_variant.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Instantiates the registered indexers from the registry |root| + |path| key | 22 // Instantiates the registered indexers from the registry |root| + |path| key |
23 // and adds them to the |indexers| list. | 23 // and adds them to the |indexers| list. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 base::win::ScopedBstr format(page_data.thumbnail_format ? | 108 base::win::ScopedBstr format(page_data.thumbnail_format ? |
109 ASCIIToWide(page_data.thumbnail_format).c_str() : | 109 ASCIIToWide(page_data.thumbnail_format).c_str() : |
110 NULL); | 110 NULL); |
111 base::win::ScopedVariant psa(thumbnail_arr.m_psa); | 111 base::win::ScopedVariant psa(thumbnail_arr.m_psa); |
112 for (size_t i = 0; i < indexers_.size(); ++i) { | 112 for (size_t i = 0; i < indexers_.size(); ++i) { |
113 indexers_[i]->SendPageData(time, url, html, title, format, psa); | 113 indexers_[i]->SendPageData(time, url, html, title, format, psa); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 } // namespace history | 117 } // namespace history |
OLD | NEW |