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

Unified Diff: ppapi/cpp/file_io.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 8 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/file_io.h
diff --git a/ppapi/cpp/file_io.h b/ppapi/cpp/file_io.h
index 29a45f6301260ee94aa9f9a516746b56eae1ac46..e52b36b530d15b45dfafe8b975b5a0502b15ae8d 100644
--- a/ppapi/cpp/file_io.h
+++ b/ppapi/cpp/file_io.h
@@ -17,7 +17,7 @@ namespace pp {
class CompletionCallback;
class FileRef;
-class Instance;
+class InstanceHandle;
/// The <code>FileIO</code> class represents a regular file.
class FileIO : public Resource {
@@ -29,8 +29,9 @@ class FileIO : public Resource {
/// A constructor used to create a <code>FileIO</code> and associate it with
/// the provided <code>Instance</code>.
///
- /// @param[in] instance An <code>Instance</code>.
- FileIO(Instance* instance);
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ FileIO(const InstanceHandle& instance);
dmichael (off chromium) 2012/02/22 21:38:44 explicit
/// The copy constructor for <code>FileIO</code>.
///

Powered by Google App Engine
This is Rietveld 408576698