| 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 #ifndef CHROME_PLUGIN_PLUGIN_THREAD_H_ | 5 #ifndef CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| 6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_ | 6 #define CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "chrome/common/child_thread.h" | 9 #include "chrome/common/child_thread.h" |
| 10 #include "chrome/common/resource_dispatcher.h" | 10 #include "chrome/common/resource_dispatcher.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 return resource_dispatcher_.get(); | 28 return resource_dispatcher_.get(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 virtual void OnControlMessageReceived(const IPC::Message& msg); | 32 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 33 | 33 |
| 34 // Thread implementation: | 34 // Thread implementation: |
| 35 virtual void Init(); | 35 virtual void Init(); |
| 36 virtual void CleanUp(); | 36 virtual void CleanUp(); |
| 37 | 37 |
| 38 void OnCreateChannel(int process_id, HANDLE renderer); | 38 void OnCreateChannel(); |
| 39 void OnShutdownResponse(bool ok_to_shutdown); | 39 void OnShutdownResponse(bool ok_to_shutdown); |
| 40 void OnPluginMessage(const std::vector<uint8> &data); | 40 void OnPluginMessage(const std::vector<uint8> &data); |
| 41 void OnBrowserShutdown(); | 41 void OnBrowserShutdown(); |
| 42 | 42 |
| 43 scoped_ptr<NotificationService> notification_service_; | 43 scoped_ptr<NotificationService> notification_service_; |
| 44 | 44 |
| 45 // Handles resource loads for this view. | 45 // Handles resource loads for this view. |
| 46 // NOTE: this object lives on the owner thread. | 46 // NOTE: this object lives on the owner thread. |
| 47 scoped_refptr<ResourceDispatcher> resource_dispatcher_; | 47 scoped_refptr<ResourceDispatcher> resource_dispatcher_; |
| 48 | 48 |
| 49 // The plugin module which is preloaded in Init | 49 // The plugin module which is preloaded in Init |
| 50 HMODULE preloaded_plugin_module_; | 50 HMODULE preloaded_plugin_module_; |
| 51 | 51 |
| 52 // Points to the plugin file that this process hosts. | 52 // Points to the plugin file that this process hosts. |
| 53 FilePath plugin_path_; | 53 FilePath plugin_path_; |
| 54 | 54 |
| 55 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); | 55 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ | 58 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| OLD | NEW |