OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 27 matching lines...) Expand all Loading... |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class DirectoryEntrySync; | 40 class DirectoryEntrySync; |
41 class File; | 41 class File; |
42 class FileEntrySync; | 42 class FileEntrySync; |
43 class FileWriterSync; | 43 class FileWriterSync; |
44 class ExceptionState; | 44 class ExceptionState; |
45 | 45 |
46 class DOMFileSystemSync FINAL : public DOMFileSystemBase, public ScriptWrappable
{ | 46 class DOMFileSystemSync FINAL : public DOMFileSystemBase, public ScriptWrappable
{ |
47 public: | 47 public: |
48 static PassRefPtr<DOMFileSystemSync> create(ExecutionContext* context, const
String& name, FileSystemType type, const KURL& rootURL) | 48 static PassRefPtrWillBeRawPtr<DOMFileSystemSync> create(ExecutionContext* co
ntext, const String& name, FileSystemType type, const KURL& rootURL) |
49 { | 49 { |
50 return adoptRef(new DOMFileSystemSync(context, name, type, rootURL)); | 50 return adoptRefWillBeRefCountedGarbageCollected(new DOMFileSystemSync(co
ntext, name, type, rootURL)); |
51 } | 51 } |
52 | 52 |
53 static PassRefPtr<DOMFileSystemSync> create(DOMFileSystemBase*); | 53 static PassRefPtrWillBeRawPtr<DOMFileSystemSync> create(DOMFileSystemBase*); |
54 | 54 |
55 virtual ~DOMFileSystemSync(); | 55 virtual ~DOMFileSystemSync(); |
56 | 56 |
57 virtual void reportError(PassOwnPtr<ErrorCallback>, PassRefPtrWillBeRawPtr<F
ileError>) OVERRIDE; | 57 virtual void reportError(PassOwnPtr<ErrorCallback>, PassRefPtrWillBeRawPtr<F
ileError>) OVERRIDE; |
58 | 58 |
59 PassRefPtr<DirectoryEntrySync> root(); | 59 PassRefPtrWillBeRawPtr<DirectoryEntrySync> root(); |
60 | 60 |
61 PassRefPtrWillBeRawPtr<File> createFile(const FileEntrySync*, ExceptionState
&); | 61 PassRefPtrWillBeRawPtr<File> createFile(const FileEntrySync*, ExceptionState
&); |
62 PassRefPtr<FileWriterSync> createWriter(const FileEntrySync*, ExceptionState
&); | 62 PassRefPtrWillBeRawPtr<FileWriterSync> createWriter(const FileEntrySync*, Ex
ceptionState&); |
63 | 63 |
64 private: | 64 private: |
65 DOMFileSystemSync(ExecutionContext*, const String& name, FileSystemType, con
st KURL& rootURL); | 65 DOMFileSystemSync(ExecutionContext*, const String& name, FileSystemType, con
st KURL& rootURL); |
66 }; | 66 }; |
67 | 67 |
68 } | 68 } |
69 | 69 |
70 #endif // DOMFileSystemSync_h | 70 #endif // DOMFileSystemSync_h |
OLD | NEW |