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 "webkit/default_plugin/plugin_database_handler.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
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 #include "webkit/default_plugin/plugin_impl.h" | 13 #include "webkit/default_plugin/plugin_impl.h" |
14 #include "webkit/default_plugin/plugin_main.h" | 14 #include "webkit/default_plugin/plugin_main.h" |
15 | 15 |
| 16 using base::Time; |
| 17 using base::TimeDelta; |
| 18 |
16 PluginDatabaseHandler::PluginDatabaseHandler( | 19 PluginDatabaseHandler::PluginDatabaseHandler( |
17 PluginInstallerImpl& plugin_installer_instance) | 20 PluginInstallerImpl& plugin_installer_instance) |
18 : plugin_downloads_file_(INVALID_HANDLE_VALUE), | 21 : plugin_downloads_file_(INVALID_HANDLE_VALUE), |
19 plugin_installer_instance_(plugin_installer_instance), | 22 plugin_installer_instance_(plugin_installer_instance), |
20 ignore_plugin_db_data_(false) { | 23 ignore_plugin_db_data_(false) { |
21 } | 24 } |
22 | 25 |
23 PluginDatabaseHandler::~PluginDatabaseHandler() { | 26 PluginDatabaseHandler::~PluginDatabaseHandler() { |
24 if (plugin_downloads_file_ != INVALID_HANDLE_VALUE) { | 27 if (plugin_downloads_file_ != INVALID_HANDLE_VALUE) { |
25 ::CloseHandle(plugin_downloads_file_); | 28 ::CloseHandle(plugin_downloads_file_); |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 plugin_detail->download_url = | 313 plugin_detail->download_url = |
311 reinterpret_cast<const char*>(plugin_download_url_val->content); | 314 reinterpret_cast<const char*>(plugin_download_url_val->content); |
312 plugin_detail->mime_type = | 315 plugin_detail->mime_type = |
313 reinterpret_cast<const char*>(plugin_mime_type_val->content); | 316 reinterpret_cast<const char*>(plugin_mime_type_val->content); |
314 plugin_detail->language = | 317 plugin_detail->language = |
315 reinterpret_cast<const char*>(plugin_lang_val->content); | 318 reinterpret_cast<const char*>(plugin_lang_val->content); |
316 | 319 |
317 return true; | 320 return true; |
318 } | 321 } |
319 | 322 |
OLD | NEW |