| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/mime_util.h" | 5 #include "base/mime_util.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 #include <sys/time.h> | 8 #include <sys/time.h> |
| 9 #include <time.h> | 9 #include <time.h> |
| 10 | 10 |
| 11 #include <cstdlib> | 11 #include <cstdlib> |
| 12 #include <list> | 12 #include <list> |
| 13 #include <map> | 13 #include <map> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 17 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
| 19 #include "base/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| 20 #include "base/singleton.h" | 20 #include "base/memory/singleton.h" |
| 21 #include "base/string_split.h" | 21 #include "base/string_split.h" |
| 22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
| 23 #include "base/third_party/xdg_mime/xdgmime.h" | 23 #include "base/third_party/xdg_mime/xdgmime.h" |
| 24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 class IconTheme; | 28 class IconTheme; |
| 29 | 29 |
| 30 class MimeUtilConstants { | 30 class MimeUtilConstants { |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 } else { | 619 } else { |
| 620 icon_file = LookupIconInDefaultTheme(icon_names[i], size); | 620 icon_file = LookupIconInDefaultTheme(icon_names[i], size); |
| 621 if (!icon_file.empty()) | 621 if (!icon_file.empty()) |
| 622 return icon_file; | 622 return icon_file; |
| 623 } | 623 } |
| 624 } | 624 } |
| 625 return FilePath(); | 625 return FilePath(); |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace mime_util | 628 } // namespace mime_util |
| OLD | NEW |