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 // TODO: Need to deal with NPAPI's NPSavedData. | 5 // TODO: Need to deal with NPAPI's NPSavedData. |
6 // I haven't seen plugins use it yet. | 6 // I haven't seen plugins use it yet. |
7 | 7 |
8 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ | 8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ | 9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <stack> | 12 #include <stack> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "third_party/npapi/bindings/npapi.h" | 19 #include "third_party/npapi/bindings/npapi.h" |
20 #include "third_party/npapi/bindings/nphostapi.h" | 20 #include "third_party/npapi/bindings/nphostapi.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class MessageLoop; | 27 class MessageLoop; |
28 } | 28 } |
29 | 29 |
30 namespace webkit { | 30 namespace content { |
31 namespace npapi { | |
32 | 31 |
33 class PluginLib; | 32 class PluginLib; |
34 class PluginHost; | 33 class PluginHost; |
35 class PluginStream; | 34 class PluginStream; |
36 class PluginStreamUrl; | 35 class PluginStreamUrl; |
37 class WebPlugin; | 36 class WebPlugin; |
38 class WebPluginResourceClient; | 37 class WebPluginResourceClient; |
39 | 38 |
40 #if defined(OS_MACOSX) | 39 #if defined(OS_MACOSX) |
41 class ScopedCurrentPluginEvent; | 40 class ScopedCurrentPluginEvent; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 public: | 360 public: |
362 ScopedCurrentPluginEvent(PluginInstance* instance, NPCocoaEvent* event); | 361 ScopedCurrentPluginEvent(PluginInstance* instance, NPCocoaEvent* event); |
363 ~ScopedCurrentPluginEvent(); | 362 ~ScopedCurrentPluginEvent(); |
364 | 363 |
365 private: | 364 private: |
366 scoped_refptr<PluginInstance> instance_; | 365 scoped_refptr<PluginInstance> instance_; |
367 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); | 366 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); |
368 }; | 367 }; |
369 #endif | 368 #endif |
370 | 369 |
371 } // namespace npapi | 370 } // namespace content |
372 } // namespace webkit | |
373 | 371 |
374 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ | 372 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |