| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "webkit/browser/webkit_storage_browser_export.h" | 11 #include "webkit/browser/webkit_storage_browser_export.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class FilePath; | 14 class FilePath; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace fileapi { | 17 namespace storage { |
| 18 | 18 |
| 19 class QuotaReservation; | 19 class QuotaReservation; |
| 20 class OpenFileHandleContext; | 20 class OpenFileHandleContext; |
| 21 class QuotaReservationBuffer; | 21 class QuotaReservationBuffer; |
| 22 | 22 |
| 23 // Represents an open file like a file descriptor. | 23 // Represents an open file like a file descriptor. |
| 24 // This should be alive while a consumer keeps a file opened and should be | 24 // This should be alive while a consumer keeps a file opened and should be |
| 25 // deleted when the plugin closes the file. | 25 // deleted when the plugin closes the file. |
| 26 class WEBKIT_STORAGE_BROWSER_EXPORT OpenFileHandle { | 26 class WEBKIT_STORAGE_BROWSER_EXPORT OpenFileHandle { |
| 27 public: | 27 public: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 58 OpenFileHandleContext* context); | 58 OpenFileHandleContext* context); |
| 59 | 59 |
| 60 scoped_refptr<QuotaReservation> reservation_; | 60 scoped_refptr<QuotaReservation> reservation_; |
| 61 scoped_refptr<OpenFileHandleContext> context_; | 61 scoped_refptr<OpenFileHandleContext> context_; |
| 62 | 62 |
| 63 base::SequenceChecker sequence_checker_; | 63 base::SequenceChecker sequence_checker_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(OpenFileHandle); | 65 DISALLOW_COPY_AND_ASSIGN(OpenFileHandle); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace fileapi | 68 } // namespace storage |
| 69 | 69 |
| 70 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ | 70 #endif // WEBKIT_BROWSER_FILEAPI_QUOTA_OPEN_FILE_HANDLE_H_ |
| OLD | NEW |