Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 class SkBitmap;
36 class TransportDIB;
35 struct PP_HostResolver_Private_Hint; 37 struct PP_HostResolver_Private_Hint;
36 struct PP_NetAddress_Private; 38 struct PP_NetAddress_Private;
37 class SkBitmap;
38 class TransportDIB;
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
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;
72 struct WebCursorInfo; 73 struct WebCursorInfo;
73 struct WebFileChooserParams; 74 struct WebFileChooserParams;
74 } 75 }
75 76
76 namespace webkit_glue { 77 namespace webkit_glue {
77 class ClipboardClient; 78 class ClipboardClient;
78 class P2PTransport; 79 class P2PTransport;
79 class NetworkListObserver; 80 class NetworkListObserver;
80 } // namespace webkit_glue 81 } // namespace webkit_glue
81 82
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 // Indicates that the given instance is being destroyed. This is called from 328 // Indicates that the given instance is being destroyed. This is called from
328 // the destructor, so it's important that the instance is not dereferenced 329 // the destructor, so it's important that the instance is not dereferenced
329 // from this call. 330 // from this call.
330 virtual void InstanceDeleted(PluginInstance* instance) = 0; 331 virtual void InstanceDeleted(PluginInstance* instance) = 0;
331 332
332 // Returns a pointer (ownership not transferred) to the bitmap to paint the 333 // Returns a pointer (ownership not transferred) to the bitmap to paint the
333 // sad plugin screen with. Returns NULL on failure. 334 // sad plugin screen with. Returns NULL on failure.
334 virtual SkBitmap* GetSadPluginBitmap() = 0; 335 virtual SkBitmap* GetSadPluginBitmap() = 0;
335 336
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
336 // The caller will own the pointer returned from this. 342 // The caller will own the pointer returned from this.
337 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; 343 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
338 344
339 // The caller will own the pointer returned from this. 345 // The caller will own the pointer returned from this.
340 virtual PlatformContext3D* CreateContext3D() = 0; 346 virtual PlatformContext3D* CreateContext3D() = 0;
341 347
342 // If |device_id| is empty, the default video capture device will be used. The 348 // If |device_id| is empty, the default video capture device will be used. The
343 // user can start using the returned object to capture video right away. 349 // user can start using the returned object to capture video right away.
344 // Otherwise, the specified device will be used. The user needs to wait till 350 // Otherwise, the specified device will be used. The user needs to wait till
345 // |handler| gets an OnInitialized() notification to start using the returned 351 // |handler| gets an OnInitialized() notification to start using the returned
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 const EnumerateDevicesCallback& callback) = 0; 624 const EnumerateDevicesCallback& callback) = 0;
619 // Create a ClipboardClient for writing to the clipboard. The caller will own 625 // Create a ClipboardClient for writing to the clipboard. The caller will own
620 // the pointer to this. 626 // the pointer to this.
621 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
622 }; 628 };
623 629
624 } // namespace ppapi 630 } // namespace ppapi
625 } // namespace webkit 631 } // namespace webkit
626 632
627 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 633 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698