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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 virtual scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> 385 virtual scoped_ptr< ::ppapi::thunk::ResourceCreationAPI>
386 CreateResourceCreationAPI(PluginInstance* instance) = 0; 386 CreateResourceCreationAPI(PluginInstance* instance) = 0;
387 387
388 // Returns a pointer (ownership not transferred) to the bitmap to paint the 388 // Returns a pointer (ownership not transferred) to the bitmap to paint the
389 // sad plugin screen with. Returns NULL on failure. 389 // sad plugin screen with. Returns NULL on failure.
390 virtual SkBitmap* GetSadPluginBitmap() = 0; 390 virtual SkBitmap* GetSadPluginBitmap() = 0;
391 391
392 // Creates a replacement plug-in that is shown when the plug-in at |file_path| 392 // Creates a replacement plug-in that is shown when the plug-in at |file_path|
393 // couldn't be loaded. 393 // couldn't be loaded.
394 virtual WebKit::WebPlugin* CreatePluginReplacement( 394 virtual WebKit::WebPlugin* CreatePluginReplacement(
395 const FilePath& file_path) = 0; 395 const base::FilePath& file_path) = 0;
396 396
397 // The caller will own the pointer returned from this. 397 // The caller will own the pointer returned from this.
398 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; 398 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
399 399
400 // Returns the internal PlatformGraphics2D implementation. 400 // Returns the internal PlatformGraphics2D implementation.
401 virtual PlatformGraphics2D* GetGraphics2D(PluginInstance* instance, 401 virtual PlatformGraphics2D* GetGraphics2D(PluginInstance* instance,
402 PP_Resource graphics_2d) = 0; 402 PP_Resource graphics_2d) = 0;
403 403
404 // The caller will own the pointer returned from this. 404 // The caller will own the pointer returned from this.
405 virtual PlatformContext3D* CreateContext3D() = 0; 405 virtual PlatformContext3D* CreateContext3D() = 0;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 virtual void NumberOfFindResultsChanged(int identifier, 453 virtual void NumberOfFindResultsChanged(int identifier,
454 int total, 454 int total,
455 bool final_result) = 0; 455 bool final_result) = 0;
456 456
457 // Notifies that the index of the currently selected item has been updated. 457 // Notifies that the index of the currently selected item has been updated.
458 virtual void SelectedFindResultChanged(int identifier, int index) = 0; 458 virtual void SelectedFindResultChanged(int identifier, int index) = 0;
459 459
460 // Sends an async IPC to open a local file. 460 // Sends an async IPC to open a local file.
461 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> 461 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)>
462 AsyncOpenFileCallback; 462 AsyncOpenFileCallback;
463 virtual bool AsyncOpenFile(const FilePath& path, 463 virtual bool AsyncOpenFile(const base::FilePath& path,
464 int flags, 464 int flags,
465 const AsyncOpenFileCallback& callback) = 0; 465 const AsyncOpenFileCallback& callback) = 0;
466 466
467 // Sends an async IPC to open a file through filesystem API. 467 // Sends an async IPC to open a file through filesystem API.
468 // When a file is successfully opened, |callback| is invoked with 468 // When a file is successfully opened, |callback| is invoked with
469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for 469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for
470 // notifying that the file is closed. When the users of this function 470 // notifying that the file is closed. When the users of this function
471 // finished using the file, they must close the file handle and then must call 471 // finished using the file, they must close the file handle and then must call
472 // the supplied callback function. 472 // the supplied callback function.
473 typedef base::Callback<void (base::PlatformFileError)> 473 typedef base::Callback<void (base::PlatformFileError)>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // For quota handlings for FileIO API. 511 // For quota handlings for FileIO API.
512 typedef base::Callback<void (int64)> AvailableSpaceCallback; 512 typedef base::Callback<void (int64)> AvailableSpaceCallback;
513 virtual void QueryAvailableSpace(const GURL& origin, 513 virtual void QueryAvailableSpace(const GURL& origin,
514 quota::StorageType type, 514 quota::StorageType type,
515 const AvailableSpaceCallback& callback) = 0; 515 const AvailableSpaceCallback& callback) = 0;
516 virtual void WillUpdateFile(const GURL& file_path) = 0; 516 virtual void WillUpdateFile(const GURL& file_path) = 0;
517 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; 517 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0;
518 518
519 // Synchronously returns the platform file path for a filesystem URL. 519 // Synchronously returns the platform file path for a filesystem URL.
520 virtual void SyncGetFileSystemPlatformPath(const GURL& url, 520 virtual void SyncGetFileSystemPlatformPath(const GURL& url,
521 FilePath* platform_path) = 0; 521 base::FilePath* platform_path) = 0;
522 522
523 // Returns a MessageLoopProxy instance associated with the message loop 523 // Returns a MessageLoopProxy instance associated with the message loop
524 // of the file thread in this renderer. 524 // of the file thread in this renderer.
525 virtual scoped_refptr<base::MessageLoopProxy> 525 virtual scoped_refptr<base::MessageLoopProxy>
526 GetFileThreadMessageLoopProxy() = 0; 526 GetFileThreadMessageLoopProxy() = 0;
527 527
528 // For PPB_TCPSocket_Private. 528 // For PPB_TCPSocket_Private.
529 virtual uint32 TCPSocketCreate() = 0; 529 virtual uint32 TCPSocketCreate() = 0;
530 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, 530 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
531 uint32 socket_id, 531 uint32 socket_id,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 const EnumerateDevicesCallback& callback) = 0; 657 const EnumerateDevicesCallback& callback) = 0;
658 // Stop enumerating devices of the specified |request_id|. The |request_id| 658 // Stop enumerating devices of the specified |request_id|. The |request_id|
659 // is the return value of EnumerateDevicesCallback. 659 // is the return value of EnumerateDevicesCallback.
660 virtual void StopEnumerateDevices(int request_id) = 0; 660 virtual void StopEnumerateDevices(int request_id) = 0;
661 }; 661 };
662 662
663 } // namespace ppapi 663 } // namespace ppapi
664 } // namespace webkit 664 } // namespace webkit
665 665
666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698