| OLD | NEW |
| 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/thumbnail_database.h" | 5 #include "chrome/browser/history/thumbnail_database.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/string_tokenizer.h" | 14 #include "base/string_tokenizer.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "chrome/browser/common/url_database/url_database.h" |
| 18 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" | 19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
| 19 #include "chrome/browser/history/history_publisher.h" | 20 #include "chrome/browser/history/history_publisher.h" |
| 20 #include "chrome/browser/history/top_sites.h" | 21 #include "chrome/browser/history/top_sites.h" |
| 21 #include "chrome/browser/history/url_database.h" | |
| 22 #include "chrome/common/thumbnail_score.h" | 22 #include "chrome/common/thumbnail_score.h" |
| 23 #include "sql/statement.h" | 23 #include "sql/statement.h" |
| 24 #include "sql/transaction.h" | 24 #include "sql/transaction.h" |
| 25 #include "ui/gfx/image/image_util.h" | 25 #include "ui/gfx/image/image_util.h" |
| 26 | 26 |
| 27 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
| 28 #include "base/mac/mac_util.h" | 28 #include "base/mac/mac_util.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 // Description of database tables: | 31 // Description of database tables: |
| (...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 } | 1125 } |
| 1126 parsing_errors |= !base::StringToInt(t.token(), &height); | 1126 parsing_errors |= !base::StringToInt(t.token(), &height); |
| 1127 favicon_sizes->push_back(gfx::Size(width, height)); | 1127 favicon_sizes->push_back(gfx::Size(width, height)); |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 if (parsing_errors) | 1130 if (parsing_errors) |
| 1131 favicon_sizes->clear(); | 1131 favicon_sizes->clear(); |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 } // namespace history | 1134 } // namespace history |
| OLD | NEW |