| 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 "webkit/default_plugin/plugin_install_job_monitor.h" | 5 #include "chrome/default_plugin/plugin_install_job_monitor.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "webkit/default_plugin/plugin_impl.h" | 8 #include "chrome/default_plugin/plugin_impl.h" |
| 9 | 9 |
| 10 PluginInstallationJobMonitorThread::PluginInstallationJobMonitorThread() | 10 PluginInstallationJobMonitorThread::PluginInstallationJobMonitorThread() |
| 11 : Thread("Chrome plugin install thread"), | 11 : Thread("Chrome plugin install thread"), |
| 12 install_job_completion_port_(NULL), | 12 install_job_completion_port_(NULL), |
| 13 stop_job_monitoring_(false), | 13 stop_job_monitoring_(false), |
| 14 plugin_window_(NULL), | 14 plugin_window_(NULL), |
| 15 install_job_(NULL) { | 15 install_job_(NULL) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 PluginInstallationJobMonitorThread::~PluginInstallationJobMonitorThread() { | 18 PluginInstallationJobMonitorThread::~PluginInstallationJobMonitorThread() { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 Thread::Stop(); | 97 Thread::Stop(); |
| 98 ::CloseHandle(install_job_completion_port_); | 98 ::CloseHandle(install_job_completion_port_); |
| 99 install_job_completion_port_ = NULL; | 99 install_job_completion_port_ = NULL; |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool PluginInstallationJobMonitorThread::AssignProcessToJob( | 102 bool PluginInstallationJobMonitorThread::AssignProcessToJob( |
| 103 HANDLE process_handle) { | 103 HANDLE process_handle) { |
| 104 BOOL result = AssignProcessToJobObject(install_job_, process_handle); | 104 BOOL result = AssignProcessToJobObject(install_job_, process_handle); |
| 105 return result ? true : false; | 105 return result ? true : false; |
| 106 } | 106 } |
| OLD | NEW |