| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ |
| 7 | 7 |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ppapi/shared_impl/resource.h" | |
| 11 #include "third_party/npapi/bindings/npruntime.h" | 10 #include "third_party/npapi/bindings/npruntime.h" |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 14 | 13 |
| 15 class BrowserPlugin; | 14 class BrowserPlugin; |
| 16 class BrowserPluginPropertyBinding; | 15 class BrowserPluginPropertyBinding; |
| 17 | 16 |
| 18 class BrowserPluginBindings { | 17 class BrowserPluginBindings { |
| 19 public: | 18 public: |
| 20 // BrowserPluginNPObject is a simple struct that adds a pointer back to a | 19 // BrowserPluginNPObject is a simple struct that adds a pointer back to a |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // This is used to ensure pending tasks will not fire after this object is | 58 // This is used to ensure pending tasks will not fire after this object is |
| 60 // destroyed. | 59 // destroyed. |
| 61 base::WeakPtrFactory<BrowserPluginBindings> weak_ptr_factory_; | 60 base::WeakPtrFactory<BrowserPluginBindings> weak_ptr_factory_; |
| 62 | 61 |
| 63 DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindings); | 62 DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindings); |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace content | 65 } // namespace content |
| 67 | 66 |
| 68 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ | 67 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BINDINGS_H__ |
| OLD | NEW |