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

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

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/shared_memory.h" 15 #include "base/shared_memory.h"
16 #include "base/sync_socket.h" 16 #include "base/sync_socket.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "media/video/capture/video_capture.h" 19 #include "media/video/capture/video_capture.h"
20 #include "media/video/video_decode_accelerator.h" 20 #include "media/video/video_decode_accelerator.h"
21 #include "ppapi/c/dev/pp_video_dev.h" 21 #include "ppapi/c/dev/pp_video_dev.h"
22 #include "ppapi/c/dev/ppb_device_ref_dev.h" 22 #include "ppapi/c/dev/ppb_device_ref_dev.h"
23 #include "ppapi/c/pp_completion_callback.h" 23 #include "ppapi/c/pp_completion_callback.h"
24 #include "ppapi/c/pp_errors.h" 24 #include "ppapi/c/pp_errors.h"
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 "ppapi/shared_impl/dir_contents.h"
28 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
29 #include "webkit/fileapi/file_system_types.h" 30 #include "webkit/fileapi/file_system_types.h"
30 #include "webkit/glue/clipboard_client.h" 31 #include "webkit/glue/clipboard_client.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; 35 class SkBitmap;
36 class TransportDIB; 36 class TransportDIB;
37 struct PP_HostResolver_Private_Hint; 37 struct PP_HostResolver_Private_Hint;
38 struct PP_NetAddress_Private; 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
49 namespace gfx { 49 namespace gfx {
50 class Point; 50 class Point;
51 } 51 }
52 52
53 namespace gpu { 53 namespace gpu {
54 class CommandBuffer; 54 class CommandBuffer;
55 } 55 }
56 56
57 namespace ppapi { 57 namespace ppapi {
58 class PepperFilePath;
58 class PPB_HostResolver_Shared; 59 class PPB_HostResolver_Shared;
59 class PPB_X509Certificate_Fields; 60 class PPB_X509Certificate_Fields;
60 struct DeviceRefData; 61 struct DeviceRefData;
61 struct HostPortPair; 62 struct HostPortPair;
62 struct Preferences; 63 struct Preferences;
63 } 64 }
64 65
65 namespace skia { 66 namespace skia {
66 class PlatformCanvas; 67 class PlatformCanvas;
67 } 68 }
(...skipping 11 matching lines...) Expand all
79 class ClipboardClient; 80 class ClipboardClient;
80 class P2PTransport; 81 class P2PTransport;
81 class NetworkListObserver; 82 class NetworkListObserver;
82 } // namespace webkit_glue 83 } // namespace webkit_glue
83 84
84 namespace webkit { 85 namespace webkit {
85 namespace ppapi { 86 namespace ppapi {
86 87
87 class FileIO; 88 class FileIO;
88 class FullscreenContainer; 89 class FullscreenContainer;
89 class PepperFilePath;
90 class PluginInstance; 90 class PluginInstance;
91 class PluginModule; 91 class PluginModule;
92 class PPB_Broker_Impl; 92 class PPB_Broker_Impl;
93 class PPB_Flash_Menu_Impl; 93 class PPB_Flash_Menu_Impl;
94 class PPB_TCPSocket_Private_Impl; 94 class PPB_TCPSocket_Private_Impl;
95 class PPB_UDPSocket_Private_Impl; 95 class PPB_UDPSocket_Private_Impl;
96 96
97 // Virtual interface that the browser implements to implement features for 97 // Virtual interface that the browser implements to implement features for
98 // PPAPI plugins. 98 // PPAPI plugins.
99 class PluginDelegate { 99 class PluginDelegate {
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 449 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
450 450
451 // For quota handlings for FileIO API. 451 // For quota handlings for FileIO API.
452 typedef base::Callback<void (int64)> AvailableSpaceCallback; 452 typedef base::Callback<void (int64)> AvailableSpaceCallback;
453 virtual void QueryAvailableSpace(const GURL& origin, 453 virtual void QueryAvailableSpace(const GURL& origin,
454 quota::StorageType type, 454 quota::StorageType type,
455 const AvailableSpaceCallback& callback) = 0; 455 const AvailableSpaceCallback& callback) = 0;
456 virtual void WillUpdateFile(const GURL& file_path) = 0; 456 virtual void WillUpdateFile(const GURL& file_path) = 0;
457 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; 457 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0;
458 458
459 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, 459 virtual base::PlatformFileError OpenFile(
460 int flags, 460 const ::ppapi::PepperFilePath& path,
461 base::PlatformFile* file) = 0; 461 int flags,
462 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, 462 base::PlatformFile* file) = 0;
463 const PepperFilePath& to_path) = 0; 463 virtual base::PlatformFileError RenameFile(
464 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, 464 const ::ppapi::PepperFilePath& from_path,
465 bool recursive) = 0; 465 const ::ppapi::PepperFilePath& to_path) = 0;
466 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; 466 virtual base::PlatformFileError DeleteFileOrDir(
467 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, 467 const ::ppapi::PepperFilePath& path,
468 base::PlatformFileInfo* info) = 0; 468 bool recursive) = 0;
469 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, 469 virtual base::PlatformFileError CreateDir(
470 DirContents* contents) = 0; 470 const ::ppapi::PepperFilePath& path) = 0;
471 virtual base::PlatformFileError QueryFile(
472 const ::ppapi::PepperFilePath& path,
473 base::PlatformFileInfo* info) = 0;
474 virtual base::PlatformFileError GetDirContents(
475 const ::ppapi::PepperFilePath& path,
476 ::ppapi::DirContents* contents) = 0;
471 477
472 // Synchronously returns the platform file path for a filesystem URL. 478 // Synchronously returns the platform file path for a filesystem URL.
473 virtual void SyncGetFileSystemPlatformPath(const GURL& url, 479 virtual void SyncGetFileSystemPlatformPath(const GURL& url,
474 FilePath* platform_path) = 0; 480 FilePath* platform_path) = 0;
475 481
476 // Returns a MessageLoopProxy instance associated with the message loop 482 // Returns a MessageLoopProxy instance associated with the message loop
477 // of the file thread in this renderer. 483 // of the file thread in this renderer.
478 virtual scoped_refptr<base::MessageLoopProxy> 484 virtual scoped_refptr<base::MessageLoopProxy>
479 GetFileThreadMessageLoopProxy() = 0; 485 GetFileThreadMessageLoopProxy() = 0;
480 486
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 646 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
641 647
642 // Returns a Device ID 648 // Returns a Device ID
643 virtual std::string GetDeviceID() = 0; 649 virtual std::string GetDeviceID() = 0;
644 }; 650 };
645 651
646 } // namespace ppapi 652 } // namespace ppapi
647 } // namespace webkit 653 } // namespace webkit
648 654
649 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 655 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698