| 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 // Helper functions that are used by the NPObject proxy and stub. | 5 // Helper functions that are used by the NPObject proxy and stub. |
| 6 | 6 |
| 7 #ifndef CHROME_PLUGIN_NPOBJECT_UTIL_H__ | 7 #ifndef CONTENT_PLUGIN_NPOBJECT_UTIL_H_ |
| 8 #define CHROME_PLUGIN_NPOBJECT_UTIL_H__ | 8 #define CONTENT_PLUGIN_NPOBJECT_UTIL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 | 12 |
| 13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include <windows.h> | 14 #include <windows.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include "chrome/plugin/npobject_stub.h" | 17 #include "content/plugin/npobject_stub.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 class NPObjectProxy; | 20 class NPObjectProxy; |
| 21 class PluginChannelBase; | 21 class PluginChannelBase; |
| 22 | 22 |
| 23 struct _NPVariant; | 23 struct _NPVariant; |
| 24 struct NPIdentifier_Param; | 24 struct NPIdentifier_Param; |
| 25 struct NPVariant_Param; | 25 struct NPVariant_Param; |
| 26 | 26 |
| 27 typedef _NPVariant NPVariant; | 27 typedef _NPVariant NPVariant; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 #if defined(OS_WIN) | 64 #if defined(OS_WIN) |
| 65 // Given a plugin's HWND, returns an event associated with the TabContents | 65 // Given a plugin's HWND, returns an event associated with the TabContents |
| 66 // that's set when inside a messagebox. This tells the plugin process that | 66 // that's set when inside a messagebox. This tells the plugin process that |
| 67 // the message queue should be pumped (as what would happen if everything was | 67 // the message queue should be pumped (as what would happen if everything was |
| 68 // in-process). This avoids deadlocks when a plugin invokes javascript that | 68 // in-process). This avoids deadlocks when a plugin invokes javascript that |
| 69 // causes a message box to come up. | 69 // causes a message box to come up. |
| 70 HANDLE GetMessageBoxEvent(HWND hwnd); | 70 HANDLE GetMessageBoxEvent(HWND hwnd); |
| 71 #endif // defined(OS_WIN) | 71 #endif // defined(OS_WIN) |
| 72 | 72 |
| 73 #endif // CHROME_PLUGIN_NPOBJECT_UTIL_H__ | 73 #endif // CONTENT_PLUGIN_NPOBJECT_UTIL_H_ |
| OLD | NEW |