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

Side by Side Diff: Source/bindings/core/v8/custom/V8BlobCustomHelpers.h

Issue 687573002: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 double lastModified() const 59 double lastModified() const
60 { 60 {
61 ASSERT(m_hasFileProperties); 61 ASSERT(m_hasFileProperties);
62 ASSERT(m_hasLastModified); 62 ASSERT(m_hasLastModified);
63 return m_lastModified; 63 return m_lastModified;
64 } 64 }
65 65
66 // Extracts the "type" and "endings" properties out of the BlobPropertyBag p assed to a Blob constructor. 66 // Extracts the "type" and "endings" properties out of the BlobPropertyBag p assed to a Blob constructor.
67 // http://www.w3.org/TR/FileAPI/#constructorParams 67 // http://www.w3.org/TR/FileAPI/#constructorParams
68 // Returns true if everything went well, false if a JS exception was thrown. 68 // Returns true if everything went well, false if a JS exception was thrown.
69 bool parseBlobPropertyBag(v8::Local<v8::Value> propertyBag, const char* blob ClassName, ExceptionState&, v8::Isolate*); 69 bool parseBlobPropertyBag(v8::Isolate*, v8::Local<v8::Value> propertyBag, co nst char* blobClassName, ExceptionState&);
70 70
71 private: 71 private:
72 String m_contentType; 72 String m_contentType;
73 bool m_normalizeLineEndingsToNative; 73 bool m_normalizeLineEndingsToNative;
74 74
75 // False if this contains the properties of a BlobPropertyBag. 75 // False if this contains the properties of a BlobPropertyBag.
76 bool m_hasFileProperties; 76 bool m_hasFileProperties;
77 77
78 double m_lastModified; 78 double m_lastModified;
79 #if ENABLE(ASSERT) 79 #if ENABLE(ASSERT)
80 bool m_hasLastModified; 80 bool m_hasLastModified;
81 #endif // ENABLE(ASSERT) 81 #endif // ENABLE(ASSERT)
82 }; 82 };
83 83
84 // Appends the blobParts passed to a Blob or File constructor into a BlobData. 84 // Appends the blobParts passed to a Blob or File constructor into a BlobData.
85 // http://www.w3.org/TR/FileAPI/#constructorParams 85 // http://www.w3.org/TR/FileAPI/#constructorParams
86 // Returns true if everything went well, false if a JS exception was thrown. 86 // Returns true if everything went well, false if a JS exception was thrown.
87 bool processBlobParts(v8::Local<v8::Object> blobParts, bool normalizeLineEndings ToNative, BlobData&, v8::Isolate*); 87 bool processBlobParts(v8::Isolate*, v8::Local<v8::Object> blobParts, bool normal izeLineEndingsToNative, BlobData&);
88 88
89 } // namespace V8BlobCustomHelpers 89 } // namespace V8BlobCustomHelpers
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // V8BlobCustomHelpers_h 93 #endif // V8BlobCustomHelpers_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8BlobCustom.cpp ('k') | Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698