| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/drive/search_metadata.h" | 5 #include "chrome/browser/chromeos/drive/search_metadata.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/i18n/string_search.h" | 11 #include "base/i18n/string_search.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
| 16 #include "chrome/browser/drive/drive_api_util.h" | 16 #include "components/drive/drive_api_util.h" |
| 17 #include "net/base/escape.h" | 17 #include "net/base/escape.h" |
| 18 | 18 |
| 19 namespace drive { | 19 namespace drive { |
| 20 namespace internal { | 20 namespace internal { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 struct ResultCandidate { | 24 struct ResultCandidate { |
| 25 ResultCandidate(const std::string& local_id, | 25 ResultCandidate(const std::string& local_id, |
| 26 const ResourceEntry& entry, | 26 const ResourceEntry& entry, |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(pre))); | 326 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(pre))); |
| 327 highlighted_text->append("<b>"); | 327 highlighted_text->append("<b>"); |
| 328 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(match))); | 328 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(match))); |
| 329 highlighted_text->append("</b>"); | 329 highlighted_text->append("</b>"); |
| 330 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(post))); | 330 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(post))); |
| 331 return true; | 331 return true; |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace internal | 334 } // namespace internal |
| 335 } // namespace drive | 335 } // namespace drive |
| OLD | NEW |