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

Side by Side Diff: public/web/WebDOMFileSystem.h

Issue 208393012: Revert of Framework for converting embedder uses of WebFrame to WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebDOMCustomEvent.h ('k') | public/web/WebDevToolsAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 #ifndef WebDOMFileSystem_h 30 #ifndef WebDOMFileSystem_h
31 #define WebDOMFileSystem_h 31 #define WebDOMFileSystem_h
32 32
33 #include "../platform/WebCommon.h" 33 #include "../platform/WebCommon.h"
34 #include "../platform/WebFileSystem.h" 34 #include "../platform/WebFileSystem.h"
35 #include "../platform/WebPrivatePtr.h" 35 #include "../platform/WebPrivatePtr.h"
36 #include "../platform/WebString.h" 36 #include "../platform/WebString.h"
37 #include "../platform/WebURL.h" 37 #include "../platform/WebURL.h"
38 #include "WebFrame.h"
39 38
40 #if BLINK_IMPLEMENTATION 39 #if BLINK_IMPLEMENTATION
41 #include "heap/Handle.h" 40 #include "heap/Handle.h"
42 #endif 41 #endif
43 42
44 namespace v8 { 43 namespace v8 {
45 class Value; 44 class Value;
46 template <class T> class Handle; 45 template <class T> class Handle;
47 } 46 }
48 47
49 namespace WebCore { class DOMFileSystem; } 48 namespace WebCore { class DOMFileSystem; }
50 49
51 namespace blink { 50 namespace blink {
52 51
52 class WebFrame;
53
53 class WebDOMFileSystem { 54 class WebDOMFileSystem {
54 public: 55 public:
55 enum SerializableType { 56 enum SerializableType {
56 SerializableTypeSerializable, 57 SerializableTypeSerializable,
57 SerializableTypeNotSerializable, 58 SerializableTypeNotSerializable,
58 }; 59 };
59 enum EntryType { 60 enum EntryType {
60 EntryTypeFile, 61 EntryTypeFile,
61 EntryTypeDirectory, 62 EntryTypeDirectory,
62 }; 63 };
63 64
64 ~WebDOMFileSystem() { reset(); } 65 ~WebDOMFileSystem() { reset(); }
65 66
66 WebDOMFileSystem() { } 67 WebDOMFileSystem() { }
67 WebDOMFileSystem(const WebDOMFileSystem& d) { assign(d); } 68 WebDOMFileSystem(const WebDOMFileSystem& d) { assign(d); }
68 WebDOMFileSystem& operator=(const WebDOMFileSystem& d) 69 WebDOMFileSystem& operator=(const WebDOMFileSystem& d)
69 { 70 {
70 assign(d); 71 assign(d);
71 return *this; 72 return *this;
72 } 73 }
73 74
74 BLINK_EXPORT static WebDOMFileSystem fromV8Value(v8::Handle<v8::Value>); 75 BLINK_EXPORT static WebDOMFileSystem fromV8Value(v8::Handle<v8::Value>);
75 76
76 // FIXME: Deprecate the last argument when all filesystems become 77 // FIXME: Deprecate the last argument when all filesystems become
77 // serializable. 78 // serializable.
78 BLINK_EXPORT static WebDOMFileSystem create( 79 BLINK_EXPORT static WebDOMFileSystem create(
79 WebLocalFrame*, 80 WebFrame*,
80 WebFileSystemType, 81 WebFileSystemType,
81 const WebString& name, 82 const WebString& name,
82 const WebURL& rootURL, 83 const WebURL& rootURL,
83 SerializableType = SerializableTypeNotSerializable); 84 SerializableType = SerializableTypeNotSerializable);
84 85
85 BLINK_EXPORT void reset(); 86 BLINK_EXPORT void reset();
86 BLINK_EXPORT void assign(const WebDOMFileSystem&); 87 BLINK_EXPORT void assign(const WebDOMFileSystem&);
87 88
88 BLINK_EXPORT WebString name() const; 89 BLINK_EXPORT WebString name() const;
89 BLINK_EXPORT WebFileSystem::Type type() const; 90 BLINK_EXPORT WebFileSystem::Type type() const;
(...skipping 11 matching lines...) Expand all
101 WebDOMFileSystem& operator=(const PassRefPtrWillBeRawPtr<WebCore::DOMFileSys tem>&); 102 WebDOMFileSystem& operator=(const PassRefPtrWillBeRawPtr<WebCore::DOMFileSys tem>&);
102 #endif 103 #endif
103 104
104 private: 105 private:
105 WebPrivatePtr<WebCore::DOMFileSystem> m_private; 106 WebPrivatePtr<WebCore::DOMFileSystem> m_private;
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 #endif // WebDOMFileSystem_h 111 #endif // WebDOMFileSystem_h
OLDNEW
« no previous file with comments | « public/web/WebDOMCustomEvent.h ('k') | public/web/WebDevToolsAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698