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

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

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android ifx Created 6 years, 6 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
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/in_memory_url_index.h" 5 #include "chrome/browser/history/in_memory_url_index.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
(...skipping 20 matching lines...) Expand all
31 void DeleteCacheFile(const base::FilePath& path) { 31 void DeleteCacheFile(const base::FilePath& path) {
32 DCHECK(!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 32 DCHECK(!content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
33 base::DeleteFile(path, false); 33 base::DeleteFile(path, false);
34 } 34 }
35 35
36 // Initializes a whitelist of URL schemes. 36 // Initializes a whitelist of URL schemes.
37 void InitializeSchemeWhitelist(std::set<std::string>* whitelist) { 37 void InitializeSchemeWhitelist(std::set<std::string>* whitelist) {
38 DCHECK(whitelist); 38 DCHECK(whitelist);
39 if (!whitelist->empty()) 39 if (!whitelist->empty())
40 return; // Nothing to do, already initialized. 40 return; // Nothing to do, already initialized.
41 whitelist->insert(std::string(content::kAboutScheme)); 41 whitelist->insert(std::string(url::kAboutScheme));
42 whitelist->insert(std::string(content::kChromeUIScheme)); 42 whitelist->insert(std::string(content::kChromeUIScheme));
43 whitelist->insert(std::string(url::kFileScheme)); 43 whitelist->insert(std::string(url::kFileScheme));
44 whitelist->insert(std::string(url::kFtpScheme)); 44 whitelist->insert(std::string(url::kFtpScheme));
45 whitelist->insert(std::string(url::kHttpScheme)); 45 whitelist->insert(std::string(url::kHttpScheme));
46 whitelist->insert(std::string(url::kHttpsScheme)); 46 whitelist->insert(std::string(url::kHttpsScheme));
47 whitelist->insert(std::string(url::kMailToScheme)); 47 whitelist->insert(std::string(url::kMailToScheme));
48 } 48 }
49 49
50 // Restore/SaveCacheObserver --------------------------------------------------- 50 // Restore/SaveCacheObserver ---------------------------------------------------
51 51
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 base::Bind(DeleteCacheFile, path)); 343 base::Bind(DeleteCacheFile, path));
344 } 344 }
345 } 345 }
346 346
347 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) { 347 void InMemoryURLIndex::OnCacheSaveDone(bool succeeded) {
348 if (save_cache_observer_) 348 if (save_cache_observer_)
349 save_cache_observer_->OnCacheSaveFinished(succeeded); 349 save_cache_observer_->OnCacheSaveFinished(succeeded);
350 } 350 }
351 351
352 } // namespace history 352 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698