Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/history/url_index_private_data.cc

Issue 7811006: Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed code review feedback. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 return word_id_set; 883 return word_id_set;
884 } 884 }
885 885
886 // static 886 // static
887 void URLIndexPrivateData::InitializeSchemeWhitelist( 887 void URLIndexPrivateData::InitializeSchemeWhitelist(
888 std::set<std::string>* whitelist) { 888 std::set<std::string>* whitelist) {
889 DCHECK(whitelist); 889 DCHECK(whitelist);
890 whitelist->insert(std::string(chrome::kAboutScheme)); 890 whitelist->insert(std::string(chrome::kAboutScheme));
891 whitelist->insert(std::string(chrome::kChromeUIScheme)); 891 whitelist->insert(std::string(chrome::kChromeUIScheme));
892 whitelist->insert(std::string(chrome::kFileScheme)); 892 whitelist->insert(std::string(chrome::kFileScheme));
893 whitelist->insert(std::string(chrome::kFileSystemScheme));
893 whitelist->insert(std::string(chrome::kFtpScheme)); 894 whitelist->insert(std::string(chrome::kFtpScheme));
894 whitelist->insert(std::string(chrome::kHttpScheme)); 895 whitelist->insert(std::string(chrome::kHttpScheme));
895 whitelist->insert(std::string(chrome::kHttpsScheme)); 896 whitelist->insert(std::string(chrome::kHttpsScheme));
896 whitelist->insert(std::string(chrome::kMailToScheme)); 897 whitelist->insert(std::string(chrome::kMailToScheme));
897 } 898 }
898 899
899 // Cache Saving ---------------------------------------------------------------- 900 // Cache Saving ----------------------------------------------------------------
900 901
901 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) { 902 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) {
902 // TODO(mrossetti): Move File IO to another thread. 903 // TODO(mrossetti): Move File IO to another thread.
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 if (iter->has_title()) { 1204 if (iter->has_title()) {
1204 string16 title(UTF8ToUTF16(iter->title())); 1205 string16 title(UTF8ToUTF16(iter->title()));
1205 url_row.set_title(title); 1206 url_row.set_title(title);
1206 } 1207 }
1207 history_info_map_[history_id] = url_row; 1208 history_info_map_[history_id] = url_row;
1208 } 1209 }
1209 return true; 1210 return true;
1210 } 1211 }
1211 1212
1212 } // namespace history 1213 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698