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

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: Fix merge errors Created 8 years, 8 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 return word_id_set; 905 return word_id_set;
906 } 906 }
907 907
908 // static 908 // static
909 void URLIndexPrivateData::InitializeSchemeWhitelist( 909 void URLIndexPrivateData::InitializeSchemeWhitelist(
910 std::set<std::string>* whitelist) { 910 std::set<std::string>* whitelist) {
911 DCHECK(whitelist); 911 DCHECK(whitelist);
912 whitelist->insert(std::string(chrome::kAboutScheme)); 912 whitelist->insert(std::string(chrome::kAboutScheme));
913 whitelist->insert(std::string(chrome::kChromeUIScheme)); 913 whitelist->insert(std::string(chrome::kChromeUIScheme));
914 whitelist->insert(std::string(chrome::kFileScheme)); 914 whitelist->insert(std::string(chrome::kFileScheme));
915 whitelist->insert(std::string(chrome::kFileSystemScheme));
915 whitelist->insert(std::string(chrome::kFtpScheme)); 916 whitelist->insert(std::string(chrome::kFtpScheme));
916 whitelist->insert(std::string(chrome::kHttpScheme)); 917 whitelist->insert(std::string(chrome::kHttpScheme));
917 whitelist->insert(std::string(chrome::kHttpsScheme)); 918 whitelist->insert(std::string(chrome::kHttpsScheme));
918 whitelist->insert(std::string(chrome::kMailToScheme)); 919 whitelist->insert(std::string(chrome::kMailToScheme));
919 } 920 }
920 921
921 // Cache Saving ---------------------------------------------------------------- 922 // Cache Saving ----------------------------------------------------------------
922 923
923 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) { 924 bool URLIndexPrivateData::SaveToFile(const FilePath& file_path) {
924 // TODO(mrossetti): Move File IO to another thread. 925 // TODO(mrossetti): Move File IO to another thread.
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 String16VectorFromString16(url, false, &word_starts.url_word_starts_); 1308 String16VectorFromString16(url, false, &word_starts.url_word_starts_);
1308 String16VectorFromString16( 1309 String16VectorFromString16(
1309 row.title(), false, &word_starts.title_word_starts_); 1310 row.title(), false, &word_starts.title_word_starts_);
1310 word_starts_map_[iter->first] = word_starts; 1311 word_starts_map_[iter->first] = word_starts;
1311 } 1312 }
1312 } 1313 }
1313 return true; 1314 return true;
1314 } 1315 }
1315 1316
1316 } // namespace history 1317 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webnavigation_api.cc ('k') | chrome/browser/net/url_fixer_upper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698