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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" |
26 #include "ppapi/c/pp_resource.h" | 26 #include "ppapi/c/pp_resource.h" |
27 #include "ppapi/c/pp_stdint.h" | 27 #include "ppapi/c/pp_stdint.h" |
28 #include "ui/gfx/size.h" | 28 #include "ui/gfx/size.h" |
29 #include "webkit/fileapi/file_system_types.h" | 29 #include "webkit/fileapi/file_system_types.h" |
30 #include "webkit/glue/clipboard_client.h" | 30 #include "webkit/glue/clipboard_client.h" |
31 #include "webkit/plugins/ppapi/dir_contents.h" | 31 #include "webkit/plugins/ppapi/dir_contents.h" |
32 #include "webkit/quota/quota_types.h" | 32 #include "webkit/quota/quota_types.h" |
33 | 33 |
34 class GURL; | 34 class GURL; |
| 35 struct PP_HostResolver_Private_Hint; |
| 36 struct PP_NetAddress_Private; |
35 class SkBitmap; | 37 class SkBitmap; |
36 class TransportDIB; | 38 class TransportDIB; |
37 struct PP_HostResolver_Private_Hint; | |
38 struct PP_NetAddress_Private; | |
39 | 39 |
40 namespace base { | 40 namespace base { |
41 class MessageLoopProxy; | 41 class MessageLoopProxy; |
42 class Time; | 42 class Time; |
43 } | 43 } |
44 | 44 |
45 namespace fileapi { | 45 namespace fileapi { |
46 class FileSystemCallbackDispatcher; | 46 class FileSystemCallbackDispatcher; |
47 } | 47 } |
48 | 48 |
(...skipping 13 matching lines...) Expand all Loading... |
62 struct Preferences; | 62 struct Preferences; |
63 } | 63 } |
64 | 64 |
65 namespace skia { | 65 namespace skia { |
66 class PlatformCanvas; | 66 class PlatformCanvas; |
67 } | 67 } |
68 | 68 |
69 namespace WebKit { | 69 namespace WebKit { |
70 class WebFileChooserCompletion; | 70 class WebFileChooserCompletion; |
71 class WebGamepads; | 71 class WebGamepads; |
72 class WebPlugin; | |
73 struct WebCursorInfo; | 72 struct WebCursorInfo; |
74 struct WebFileChooserParams; | 73 struct WebFileChooserParams; |
75 } | 74 } |
76 | 75 |
77 namespace webkit_glue { | 76 namespace webkit_glue { |
78 class ClipboardClient; | 77 class ClipboardClient; |
79 class P2PTransport; | 78 class P2PTransport; |
80 class NetworkListObserver; | 79 class NetworkListObserver; |
81 } // namespace webkit_glue | 80 } // namespace webkit_glue |
82 | 81 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 326 |
328 // Indicates that the given instance is being destroyed. This is called from | 327 // Indicates that the given instance is being destroyed. This is called from |
329 // the destructor, so it's important that the instance is not dereferenced | 328 // the destructor, so it's important that the instance is not dereferenced |
330 // from this call. | 329 // from this call. |
331 virtual void InstanceDeleted(PluginInstance* instance) = 0; | 330 virtual void InstanceDeleted(PluginInstance* instance) = 0; |
332 | 331 |
333 // Returns a pointer (ownership not transferred) to the bitmap to paint the | 332 // Returns a pointer (ownership not transferred) to the bitmap to paint the |
334 // sad plugin screen with. Returns NULL on failure. | 333 // sad plugin screen with. Returns NULL on failure. |
335 virtual SkBitmap* GetSadPluginBitmap() = 0; | 334 virtual SkBitmap* GetSadPluginBitmap() = 0; |
336 | 335 |
337 // Creates a replacement plug-in that is shown when the plug-in at |file_path| | |
338 // couldn't be loaded. | |
339 virtual WebKit::WebPlugin* CreatePluginReplacement( | |
340 const FilePath& file_path) = 0; | |
341 | |
342 // The caller will own the pointer returned from this. | 336 // The caller will own the pointer returned from this. |
343 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; | 337 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; |
344 | 338 |
345 // The caller will own the pointer returned from this. | 339 // The caller will own the pointer returned from this. |
346 virtual PlatformContext3D* CreateContext3D() = 0; | 340 virtual PlatformContext3D* CreateContext3D() = 0; |
347 | 341 |
348 // If |device_id| is empty, the default video capture device will be used. The | 342 // If |device_id| is empty, the default video capture device will be used. The |
349 // user can start using the returned object to capture video right away. | 343 // user can start using the returned object to capture video right away. |
350 // Otherwise, the specified device will be used. The user needs to wait till | 344 // Otherwise, the specified device will be used. The user needs to wait till |
351 // |handler| gets an OnInitialized() notification to start using the returned | 345 // |handler| gets an OnInitialized() notification to start using the returned |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 const EnumerateDevicesCallback& callback) = 0; | 618 const EnumerateDevicesCallback& callback) = 0; |
625 // Create a ClipboardClient for writing to the clipboard. The caller will own | 619 // Create a ClipboardClient for writing to the clipboard. The caller will own |
626 // the pointer to this. | 620 // the pointer to this. |
627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 621 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
628 }; | 622 }; |
629 | 623 |
630 } // namespace ppapi | 624 } // namespace ppapi |
631 } // namespace webkit | 625 } // namespace webkit |
632 | 626 |
633 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 627 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |