OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* | 5 /* |
6 * Copyright (C) 2012 Apple Inc. All rights reserved. | 6 * Copyright (C) 2012 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 11 matching lines...) Expand all Loading... |
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
27 * THE POSSIBILITY OF SUCH DAMAGE. | 27 * THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "PluginTest.h" | 30 #include "PluginTest.h" |
31 | 31 |
| 32 #include <stdint.h> |
| 33 |
32 #include "PluginObject.h" | 34 #include "PluginObject.h" |
33 | 35 |
34 using namespace std; | 36 using namespace std; |
35 | 37 |
36 // Executing JS within NPP_New when initializing asynchronously should not be ab
le to deadlock with the WebProcess | 38 // Executing JS within NPP_New when initializing asynchronously should not be ab
le to deadlock with the WebProcess |
37 | 39 |
38 class InvokeDestroysPluginWithinNPP_New : public PluginTest { | 40 class InvokeDestroysPluginWithinNPP_New : public PluginTest { |
39 public: | 41 public: |
40 InvokeDestroysPluginWithinNPP_New(NPP, const string& identifier); | 42 InvokeDestroysPluginWithinNPP_New(NPP, const string& identifier); |
41 | 43 |
(...skipping 20 matching lines...) Expand all Loading... |
62 return NPERR_GENERIC_ERROR; | 64 return NPERR_GENERIC_ERROR; |
63 | 65 |
64 NPVariant result; | 66 NPVariant result; |
65 if (!NPN_Invoke(windowObject, NPN_GetStringIdentifier("removePluginElement")
, 0, 0, &result)) | 67 if (!NPN_Invoke(windowObject, NPN_GetStringIdentifier("removePluginElement")
, 0, 0, &result)) |
66 return NPERR_GENERIC_ERROR; | 68 return NPERR_GENERIC_ERROR; |
67 | 69 |
68 return NPERR_NO_ERROR; | 70 return NPERR_NO_ERROR; |
69 } | 71 } |
70 | 72 |
71 static PluginTest::Register<InvokeDestroysPluginWithinNPP_New> registrar("invoke
-destroys-plugin-within-npp-new"); | 73 static PluginTest::Register<InvokeDestroysPluginWithinNPP_New> registrar("invoke
-destroys-plugin-within-npp-new"); |
OLD | NEW |