| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/url_index_private_data.h" | 5 #include "chrome/browser/history/url_index_private_data.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <iterator> | 9 #include <iterator> |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 return word_id_set; | 821 return word_id_set; |
| 822 } | 822 } |
| 823 | 823 |
| 824 // static | 824 // static |
| 825 void URLIndexPrivateData::InitializeSchemeWhitelist( | 825 void URLIndexPrivateData::InitializeSchemeWhitelist( |
| 826 std::set<std::string>* whitelist) { | 826 std::set<std::string>* whitelist) { |
| 827 DCHECK(whitelist); | 827 DCHECK(whitelist); |
| 828 whitelist->insert(std::string(chrome::kAboutScheme)); | 828 whitelist->insert(std::string(chrome::kAboutScheme)); |
| 829 whitelist->insert(std::string(chrome::kChromeUIScheme)); | 829 whitelist->insert(std::string(chrome::kChromeUIScheme)); |
| 830 whitelist->insert(std::string(chrome::kFileScheme)); | 830 whitelist->insert(std::string(chrome::kFileScheme)); |
| 831 whitelist->insert(std::string(chrome::kFileSystemScheme)); |
| 831 whitelist->insert(std::string(chrome::kFtpScheme)); | 832 whitelist->insert(std::string(chrome::kFtpScheme)); |
| 832 whitelist->insert(std::string(chrome::kHttpScheme)); | 833 whitelist->insert(std::string(chrome::kHttpScheme)); |
| 833 whitelist->insert(std::string(chrome::kHttpsScheme)); | 834 whitelist->insert(std::string(chrome::kHttpsScheme)); |
| 834 whitelist->insert(std::string(chrome::kMailToScheme)); | 835 whitelist->insert(std::string(chrome::kMailToScheme)); |
| 835 } | 836 } |
| 836 | 837 |
| 837 // Cache Saving ---------------------------------------------------------------- | 838 // Cache Saving ---------------------------------------------------------------- |
| 838 | 839 |
| 839 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) { | 840 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) { |
| 840 // TODO(mrossetti): Move File IO to another thread. | 841 // TODO(mrossetti): Move File IO to another thread. |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 if (iter->has_title()) { | 1130 if (iter->has_title()) { |
| 1130 string16 title(UTF8ToUTF16(iter->title())); | 1131 string16 title(UTF8ToUTF16(iter->title())); |
| 1131 url_row.set_title(title); | 1132 url_row.set_title(title); |
| 1132 } | 1133 } |
| 1133 history_info_map_[history_id] = url_row; | 1134 history_info_map_[history_id] = url_row; |
| 1134 } | 1135 } |
| 1135 return true; | 1136 return true; |
| 1136 } | 1137 } |
| 1137 | 1138 |
| 1138 } // namespace history | 1139 } // namespace history |
| OLD | NEW |