OLD | NEW |
1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/file_path.h" | |
16 #include "base/id_map.h" | 15 #include "base/id_map.h" |
17 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
18 #include "base/task.h" | |
19 #include "base/weak_ptr.h" | 17 #include "base/weak_ptr.h" |
20 #include "chrome/renderer/pepper_devices.h" | 18 #include "chrome/renderer/pepper_devices.h" |
21 #include "chrome/renderer/render_view.h" | |
22 #include "chrome/renderer/command_buffer_proxy.h" | 19 #include "chrome/renderer/command_buffer_proxy.h" |
23 #include "gfx/native_widget_types.h" | 20 #include "gfx/native_widget_types.h" |
24 #include "gfx/rect.h" | 21 #include "gfx/rect.h" |
25 #include "third_party/npapi/bindings/npapi.h" | 22 #include "third_party/npapi/bindings/npapi.h" |
26 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h" |
27 #include "webkit/glue/plugins/webplugin_delegate.h" | 24 #include "webkit/glue/plugins/webplugin_delegate.h" |
28 #include "webkit/glue/webcursor.h" | 25 |
| 26 class FilePath; |
| 27 class RenderView; |
| 28 class WebCursor; |
| 29 class WebPluginDelegateProxy; |
29 | 30 |
30 namespace NPAPI { | 31 namespace NPAPI { |
31 class PluginInstance; | 32 class PluginInstance; |
32 } | 33 } |
33 | 34 |
34 // An implementation of WebPluginDelegate for Pepper in-process plugins. | 35 // An implementation of WebPluginDelegate for Pepper in-process plugins. |
35 class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate, | 36 class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate, |
36 public WebKit::WebFileChooserCompletion { | 37 public WebKit::WebFileChooserCompletion { |
37 public: | 38 public: |
38 static WebPluginDelegatePepper* Create( | 39 static WebPluginDelegatePepper* Create( |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // pointer to the callback specified by the plugin. Will be NULL otherwise. | 335 // pointer to the callback specified by the plugin. Will be NULL otherwise. |
335 NPChooseFileCallback current_choose_file_callback_; | 336 NPChooseFileCallback current_choose_file_callback_; |
336 void* current_choose_file_user_data_; | 337 void* current_choose_file_user_data_; |
337 | 338 |
338 scoped_ptr<WebKit::WebCursorInfo> cursor_; | 339 scoped_ptr<WebKit::WebCursorInfo> cursor_; |
339 | 340 |
340 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); | 341 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); |
341 }; | 342 }; |
342 | 343 |
343 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ | 344 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ |
OLD | NEW |