| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H__ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H__ | 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "webkit/glue/plugins/test/plugin_test.h" | 9 #include "webkit/plugins/npapi/test/plugin_test.h" |
| 10 | 10 |
| 11 namespace NPAPIClient { | 11 namespace NPAPIClient { |
| 12 | 12 |
| 13 // The NPObjectLifeTime class tests the case where a plugin has an NPObject | 13 // The NPObjectLifeTime class tests the case where a plugin has an NPObject |
| 14 // which points to a different plugin instance on a different frame in the | 14 // which points to a different plugin instance on a different frame in the |
| 15 // page and whether refcounts on this npobject are valid when the source frame | 15 // page and whether refcounts on this npobject are valid when the source frame |
| 16 // is destroyed. | 16 // is destroyed. |
| 17 class NPObjectLifetimeTest : public PluginTest { | 17 class NPObjectLifetimeTest : public PluginTest { |
| 18 public: | 18 public: |
| 19 // Constructor. | 19 // Constructor. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 unsigned long elapsed_milli_seconds); | 70 unsigned long elapsed_milli_seconds); |
| 71 UINT_PTR timer_id_; | 71 UINT_PTR timer_id_; |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_; | 75 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_; |
| 76 | 76 |
| 77 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate); | 77 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace NPAPIClient | 80 } // namespace NPAPIClient |
| 81 | 81 |
| 82 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H__ | 82 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ |
| OLD | NEW |