| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "webkit/default_plugin/plugin_database_handler.h" | 5 #include "chrome/default_plugin/plugin_database_handler.h" |
| 6 | 6 |
| 7 #if defined(USE_SYSTEM_LIBXML) | 7 #if defined(USE_SYSTEM_LIBXML) |
| 8 #include <parser.h> | 8 #include <parser.h> |
| 9 #include <xpath.h> | 9 #include <xpath.h> |
| 10 #else | 10 #else |
| 11 #include "third_party/libxml/include/libxml/parser.h" | 11 #include "third_party/libxml/include/libxml/parser.h" |
| 12 #include "third_party/libxml/include/libxml/xpath.h" | 12 #include "third_party/libxml/include/libxml/xpath.h" |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "webkit/default_plugin/plugin_impl.h" | 20 #include "chrome/default_plugin/plugin_impl.h" |
| 21 #include "webkit/default_plugin/plugin_main.h" | 21 #include "chrome/default_plugin/plugin_main.h" |
| 22 | 22 |
| 23 using base::Time; | 23 using base::Time; |
| 24 using base::TimeDelta; | 24 using base::TimeDelta; |
| 25 | 25 |
| 26 PluginDatabaseHandler::PluginDatabaseHandler( | 26 PluginDatabaseHandler::PluginDatabaseHandler( |
| 27 PluginInstallerImpl& plugin_installer_instance) | 27 PluginInstallerImpl& plugin_installer_instance) |
| 28 : plugin_downloads_file_(INVALID_HANDLE_VALUE), | 28 : plugin_downloads_file_(INVALID_HANDLE_VALUE), |
| 29 plugin_installer_instance_(plugin_installer_instance), | 29 plugin_installer_instance_(plugin_installer_instance), |
| 30 ignore_plugin_db_data_(false) { | 30 ignore_plugin_db_data_(false) { |
| 31 } | 31 } |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 reinterpret_cast<const char*>(plugin_download_url_val->content); | 349 reinterpret_cast<const char*>(plugin_download_url_val->content); |
| 350 | 350 |
| 351 SplitString(reinterpret_cast<const char*>(plugin_mime_type_vals->content), | 351 SplitString(reinterpret_cast<const char*>(plugin_mime_type_vals->content), |
| 352 kMimeTypeSeparator, &plugin_detail->mime_types); | 352 kMimeTypeSeparator, &plugin_detail->mime_types); |
| 353 | 353 |
| 354 plugin_detail->language = | 354 plugin_detail->language = |
| 355 reinterpret_cast<const char*>(plugin_lang_val->content); | 355 reinterpret_cast<const char*>(plugin_lang_val->content); |
| 356 | 356 |
| 357 return true; | 357 return true; |
| 358 } | 358 } |
| OLD | NEW |