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

Unified Diff: webkit/plugins/ppapi/quota_file_io.h

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_widget_impl.cc ('k') | webkit/plugins/ppapi/quota_file_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/quota_file_io.h
diff --git a/webkit/plugins/ppapi/quota_file_io.h b/webkit/plugins/ppapi/quota_file_io.h
index 1ee3188a39a76721ced706add58e1f7dbe74dfcb..a57b0dd2c6fd8c78655b74dd09df918a78a7a12b 100644
--- a/webkit/plugins/ppapi/quota_file_io.h
+++ b/webkit/plugins/ppapi/quota_file_io.h
@@ -12,12 +12,13 @@
#include "base/platform_file.h"
#include "googleurl/src/gurl.h"
#include "ppapi/c/pp_file_info.h"
+#include "ppapi/c/pp_instance.h"
#include "webkit/quota/quota_types.h"
namespace webkit {
namespace ppapi {
-class PluginInstance;
+class PluginDelegate;
// This class is created per PPB_FileIO_Impl instance and provides
// write operations for quota-managed files (i.e. files of
@@ -27,7 +28,7 @@ class QuotaFileIO {
typedef base::FileUtilProxy::WriteCallback WriteCallback;
typedef base::FileUtilProxy::StatusCallback StatusCallback;
- QuotaFileIO(PluginInstance* instance,
+ QuotaFileIO(PP_Instance instance,
base::PlatformFile file,
const GURL& path_url,
PP_FileSystemType type);
@@ -54,6 +55,10 @@ class QuotaFileIO {
bool SetLength(int64_t length, StatusCallback* callback);
bool WillSetLength(int64_t length, StatusCallback* callback);
+ // Returns the plugin delegate or NULL if the resource has outlived the
+ // instance.
+ PluginDelegate* GetPluginDelegate() const;
+
private:
class PendingOperationBase;
class WriteOperation;
@@ -71,7 +76,7 @@ class QuotaFileIO {
void DidQueryForQuotaCheck();
// The plugin instance that owns this (via PPB_FileIO_Impl).
- PluginInstance* instance_;
+ PP_Instance pp_instance_;
// The file information associated to this instance.
base::PlatformFile file_;
« no previous file with comments | « webkit/plugins/ppapi/ppb_widget_impl.cc ('k') | webkit/plugins/ppapi/quota_file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698