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 "chrome/default_plugin/plugin_database_handler.h" | 5 #include "chrome/default_plugin/plugin_database_handler.h" |
6 | 6 |
7 #include "libxml/parser.h" | 7 #include "libxml/parser.h" |
8 #include "libxml/xpath.h" | 8 #include "libxml/xpath.h" |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "base/string_split.h" |
13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
14 #include "base/time.h" | 15 #include "base/time.h" |
15 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
16 #include "chrome/default_plugin/plugin_impl.h" | 17 #include "chrome/default_plugin/plugin_impl.h" |
17 #include "chrome/default_plugin/plugin_main.h" | 18 #include "chrome/default_plugin/plugin_main.h" |
18 | 19 |
19 using base::Time; | 20 using base::Time; |
20 using base::TimeDelta; | 21 using base::TimeDelta; |
21 | 22 |
22 PluginDatabaseHandler::PluginDatabaseHandler( | 23 PluginDatabaseHandler::PluginDatabaseHandler( |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 reinterpret_cast<const char*>(plugin_download_url_val->content); | 347 reinterpret_cast<const char*>(plugin_download_url_val->content); |
347 | 348 |
348 SplitString(reinterpret_cast<const char*>(plugin_mime_type_vals->content), | 349 SplitString(reinterpret_cast<const char*>(plugin_mime_type_vals->content), |
349 kMimeTypeSeparator, &plugin_detail->mime_types); | 350 kMimeTypeSeparator, &plugin_detail->mime_types); |
350 | 351 |
351 plugin_detail->language = | 352 plugin_detail->language = |
352 reinterpret_cast<const char*>(plugin_lang_val->content); | 353 reinterpret_cast<const char*>(plugin_lang_val->content); |
353 | 354 |
354 return true; | 355 return true; |
355 } | 356 } |
OLD | NEW |