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 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ | 5 #ifndef CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ |
6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ | 6 #define CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 | 14 |
15 // Provides the plugin installation job monitoring functionality. | 15 // Provides the plugin installation job monitoring functionality. |
16 // The PluginInstallationJobMonitorThread class represents a background | 16 // The PluginInstallationJobMonitorThread class represents a background |
17 // thread which monitors the install job completion port which is associated | 17 // thread which monitors the install job completion port which is associated |
18 // with the job when an instance of this class is initialized. | 18 // with the job when an instance of this class is initialized. |
19 class PluginInstallationJobMonitorThread : | 19 class PluginInstallationJobMonitorThread : |
20 public base::Thread, | 20 public base::Thread, |
21 public base::RefCountedThreadSafe<PluginInstallationJobMonitorThread> { | 21 public base::RefCountedThreadSafe<PluginInstallationJobMonitorThread> { |
22 | 22 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // The install job. Should be created before the job monitor thread | 73 // The install job. Should be created before the job monitor thread |
74 // is started. | 74 // is started. |
75 HANDLE install_job_; | 75 HANDLE install_job_; |
76 // The plugin window handle. | 76 // The plugin window handle. |
77 HWND plugin_window_; | 77 HWND plugin_window_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(PluginInstallationJobMonitorThread); | 79 DISALLOW_COPY_AND_ASSIGN(PluginInstallationJobMonitorThread); |
80 }; | 80 }; |
81 | 81 |
82 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ | 82 #endif // CHROME_DEFAULT_PLUGIN_PLUGIN_INSTALL_JOB_MONITOR_H_ |
OLD | NEW |