diff options
Diffstat (limited to 'webkit/glue/plugins/pepper_plugin_delegate.h')
-rw-r--r-- | webkit/glue/plugins/pepper_plugin_delegate.h | 57 |
1 files changed, 53 insertions, 4 deletions
diff --git a/webkit/glue/plugins/pepper_plugin_delegate.h b/webkit/glue/plugins/pepper_plugin_delegate.h index 1bb4bed..7738fbf 100644 --- a/webkit/glue/plugins/pepper_plugin_delegate.h +++ b/webkit/glue/plugins/pepper_plugin_delegate.h @@ -13,11 +13,15 @@ #include "base/shared_memory.h" #include "base/sync_socket.h" #include "base/task.h" +#include "googleurl/src/gurl.h" #include "third_party/ppapi/c/pp_completion_callback.h" #include "third_party/ppapi/c/pp_errors.h" #include "third_party/ppapi/c/pp_stdint.h" +#include "webkit/fileapi/file_system_types.h" +#include "webkit/glue/plugins/pepper_dir_contents.h" class AudioMessageFilter; +class GURL; namespace base { class MessageLoopProxy; @@ -156,12 +160,12 @@ class PluginDelegate { PlatformAudio::Client* client) = 0; // Notifies that the number of find results has changed. - virtual void DidChangeNumberOfFindResults(int identifier, - int total, - bool final_result) = 0; + virtual void NumberOfFindResultsChanged(int identifier, + int total, + bool final_result) = 0; // Notifies that the index of the currently selected item has been updated. - virtual void DidChangeSelectedFindResult(int identifier, int index) = 0; + virtual void SelectedFindResultChanged(int identifier, int index) = 0; // Runs a file chooser. virtual bool RunFileChooser( @@ -174,6 +178,11 @@ class PluginDelegate { virtual bool AsyncOpenFile(const FilePath& path, int flags, AsyncOpenFileCallback* callback) = 0; + virtual bool OpenFileSystem( + const GURL& url, + fileapi::FileSystemType type, + long long size, + fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; virtual bool MakeDirectory( const FilePath& path, bool recursive, @@ -190,6 +199,31 @@ class PluginDelegate { const FilePath& new_file_path, fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; + virtual base::PlatformFileError OpenModuleLocalFile( + const std::string& module_name, + const FilePath& path, + int flags, + base::PlatformFile* file) = 0; + virtual base::PlatformFileError RenameModuleLocalFile( + const std::string& module_name, + const FilePath& path_from, + const FilePath& path_to) = 0; + virtual base::PlatformFileError DeleteModuleLocalFileOrDir( + const std::string& module_name, + const FilePath& path, + bool recursive) = 0; + virtual base::PlatformFileError CreateModuleLocalDir( + const std::string& module_name, + const FilePath& path) = 0; + virtual base::PlatformFileError QueryModuleLocalFile( + const std::string& module_name, + const FilePath& path, + base::PlatformFileInfo* info) = 0; + virtual base::PlatformFileError GetModuleLocalDirContents( + const std::string& module_name, + const FilePath& path, + PepperDirContents* contents) = 0; + // Returns a MessageLoopProxy instance associated with the message loop // of the file thread in this renderer. virtual scoped_refptr<base::MessageLoopProxy> @@ -202,6 +236,21 @@ class PluginDelegate { // Returns a string with the name of the default 8-bit char encoding. virtual std::string GetDefaultEncoding() = 0; + + // Sets the mininum and maximium zoom factors. + virtual void ZoomLimitsChanged(double minimum_factor, + double maximum_factor) = 0; + + // Retrieves the proxy information for the given URL in PAC format. On error, + // this will return an empty string. + virtual std::string ResolveProxy(const GURL& url) = 0; + + // Tell the browser when resource loading starts/ends. + virtual void DidStartLoading() = 0; + virtual void DidStopLoading() = 0; + + // Sets restrictions on how the content can be used (i.e. no print/copy). + virtual void SetContentRestriction(int restrictions) = 0; }; } // namespace pepper |