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 url.SchemeIsHTTPOrHTTPS(); |
| 54 } |
OLD | NEW |