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

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

Issue 326573002: Remove public web methods using toV8 with empty context. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/web/WebDOMFileSystem.cpp ('k') | public/web/WebDOMError.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 BLINK_EXPORT static WebBlob createFromFile(const WebString& path, long long size); 68 BLINK_EXPORT static WebBlob createFromFile(const WebString& path, long long size);
69 BLINK_EXPORT static WebBlob fromV8Value(v8::Handle<v8::Value>); 69 BLINK_EXPORT static WebBlob fromV8Value(v8::Handle<v8::Value>);
70 70
71 BLINK_EXPORT void reset(); 71 BLINK_EXPORT void reset();
72 BLINK_EXPORT void assign(const WebBlob&); 72 BLINK_EXPORT void assign(const WebBlob&);
73 BLINK_EXPORT WebString uuid(); 73 BLINK_EXPORT WebString uuid();
74 74
75 bool isNull() const { return m_private.isNull(); } 75 bool isNull() const { return m_private.isNull(); }
76 76
77 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(v8::Handle<v8::Object> creatio nContext, v8::Isolate*); 77 BLINK_EXPORT v8::Handle<v8::Value> toV8Value(v8::Handle<v8::Object> creatio nContext, v8::Isolate*);
78 // FIXME: remove the following toV8Value after fixing chromium code.
79 BLINK_EXPORT v8::Handle<v8::Value> toV8Value();
80 78
81 #if BLINK_IMPLEMENTATION 79 #if BLINK_IMPLEMENTATION
82 explicit WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); 80 explicit WebBlob(const PassRefPtrWillBeRawPtr<WebCore::Blob>&);
83 WebBlob& operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>&); 81 WebBlob& operator=(const PassRefPtrWillBeRawPtr<WebCore::Blob>&);
84 #endif 82 #endif
85 83
86 protected: 84 protected:
87 WebPrivatePtr<WebCore::Blob> m_private; 85 WebPrivatePtr<WebCore::Blob> m_private;
88 }; 86 };
89 87
90 } // namespace blink 88 } // namespace blink
91 89
92 #endif // WebBlob_h 90 #endif // WebBlob_h
OLDNEW
« no previous file with comments | « Source/web/WebDOMFileSystem.cpp ('k') | public/web/WebDOMError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698