Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/history/history_backend_client_impl.h" | 5 #include "ios/chrome/browser/history/history_backend_client_impl.h" |
| 6 | 6 |
| 7 #include "components/bookmarks/browser/bookmark_model.h" | 7 #include "components/bookmarks/browser/bookmark_model.h" |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 HistoryBackendClientImpl::HistoryBackendClientImpl( | 10 HistoryBackendClientImpl::HistoryBackendClientImpl( |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 bookmarks->reserve(bookmarks->size() + url_and_titles.size()); | 41 bookmarks->reserve(bookmarks->size() + url_and_titles.size()); |
| 42 for (const auto& url_and_title : url_and_titles) { | 42 for (const auto& url_and_title : url_and_titles) { |
| 43 history::URLAndTitle value = {url_and_title.url, url_and_title.title}; | 43 history::URLAndTitle value = {url_and_title.url, url_and_title.title}; |
| 44 bookmarks->push_back(value); | 44 bookmarks->push_back(value); |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool HistoryBackendClientImpl::ShouldReportDatabaseError() { | 48 bool HistoryBackendClientImpl::ShouldReportDatabaseError() { |
| 49 return false; | 49 return false; |
| 50 } | 50 } |
| 51 | |
| 52 bool HistoryBackendClientImpl::IsWebSafe(const GURL& url) { | |
| 53 return true; | |
|
Marc Treib
2016/05/02 15:29:44
On non-iOS, we check this via content::ChildProces
sdefresne
2016/05/03 11:18:50
I think we do not have a dedicated method to do th
Marc Treib
2016/05/03 11:51:17
GURL even has a SchemeIsHTTPOrHTTPS() method :)
Ar
sdefresne
2016/05/03 12:03:39
No, Chrome on iOS does not support ftp:, nor file:
Marc Treib
2016/05/03 12:15:10
Alright, thanks for the explanation!
I suppose "da
| |
| 54 } | |
| OLD | NEW |