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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 DOMFileSystemBase* filesystem() const { return m_fileSystem.get(); } | 47 DOMFileSystemBase* filesystem() const { return m_fileSystem.get(); } |
48 | 48 |
49 virtual bool isFile() const { return false; } | 49 virtual bool isFile() const { return false; } |
50 virtual bool isDirectory() const { return false; } | 50 virtual bool isDirectory() const { return false; } |
51 | 51 |
52 const String& fullPath() const { return m_fullPath; } | 52 const String& fullPath() const { return m_fullPath; } |
53 const String& name() const { return m_name; } | 53 const String& name() const { return m_name; } |
54 | 54 |
55 String toURL() const; | 55 String toURL() const; |
56 | 56 |
57 virtual void trace(Visitor*); | 57 DECLARE_VIRTUAL_TRACE(); |
58 | 58 |
59 protected: | 59 protected: |
60 EntryBase(DOMFileSystemBase*, const String& fullPath); | 60 EntryBase(DOMFileSystemBase*, const String& fullPath); |
61 friend class EntrySync; | 61 friend class EntrySync; |
62 | 62 |
63 Member<DOMFileSystemBase> m_fileSystem; | 63 Member<DOMFileSystemBase> m_fileSystem; |
64 | 64 |
65 // This is a virtual path. | 65 // This is a virtual path. |
66 const String m_fullPath; | 66 const String m_fullPath; |
67 const String m_name; | 67 const String m_name; |
68 | 68 |
69 mutable String m_cachedURL; | 69 mutable String m_cachedURL; |
70 }; | 70 }; |
71 | 71 |
72 } | 72 } |
73 | 73 |
74 #endif // EntryBase_h | 74 #endif // EntryBase_h |
OLD | NEW |