| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/native_library.h" | 9 #include "base/native_library.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 FilePath plugin_path() { return plugin_path_; } | 30 FilePath plugin_path() { return plugin_path_; } |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 virtual void OnControlMessageReceived(const IPC::Message& msg); | 33 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 34 | 34 |
| 35 // Callback for when a channel has been created. | 35 // Callback for when a channel has been created. |
| 36 void OnCreateChannel(int renderer_id, bool off_the_record); | 36 void OnCreateChannel(int renderer_id, bool off_the_record); |
| 37 void OnPluginMessage(const std::vector<uint8> &data); | 37 void OnPluginMessage(const std::vector<uint8> &data); |
| 38 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
| 39 void OnAppActivated(); | 39 void OnAppActivated(); |
| 40 void OnPluginFocusNotify(uint32 instance_id); |
| 40 #endif | 41 #endif |
| 41 | 42 |
| 42 // The plugin module which is preloaded in Init | 43 // The plugin module which is preloaded in Init |
| 43 base::NativeLibrary preloaded_plugin_module_; | 44 base::NativeLibrary preloaded_plugin_module_; |
| 44 | 45 |
| 45 // Points to the plugin file that this process hosts. | 46 // Points to the plugin file that this process hosts. |
| 46 FilePath plugin_path_; | 47 FilePath plugin_path_; |
| 47 | 48 |
| 48 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); | 49 DISALLOW_EVIL_CONSTRUCTORS(PluginThread); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ | 52 #endif // CHROME_PLUGIN_PLUGIN_THREAD_H_ |
| OLD | NEW |