Index: Source/web/WebAutocompleteParams.cpp |
diff --git a/Source/web/WebHeap.cpp b/Source/web/WebAutocompleteParams.cpp |
similarity index 79% |
copy from Source/web/WebHeap.cpp |
copy to Source/web/WebAutocompleteParams.cpp |
index a2d67614f34542c1c709c4051ee50fab7dc27298..ec278dcb0f919bc66c4122b786ee5b5426da8c5e 100644 |
--- a/Source/web/WebHeap.cpp |
+++ b/Source/web/WebAutocompleteParams.cpp |
@@ -29,30 +29,22 @@ |
*/ |
#include "config.h" |
-#include "WebHeap.h" |
+#include "WebAutocompleteParams.h" |
-#include "platform/heap/ThreadState.h" |
+#include "bindings/v8/Dictionary.h" |
+#include "public/platform/WebString.h" |
+#include "wtf/text/WTFString.h" |
namespace blink { |
-void WebHeap::attachThread() |
+WebAutocompleteParams::WebAutocompleteParams(const WebCore::Dictionary& details) |
+ : transactionAmount(0) |
{ |
- WebCore::ThreadState::attach(); |
-} |
- |
-void WebHeap::detachThread() |
-{ |
- WebCore::ThreadState::detach(); |
-} |
+ details.get("transactionAmount", transactionAmount); |
-WebHeap::SafePointScope::SafePointScope() |
-{ |
- WebCore::ThreadState::current()->enterSafePointWithPointers(this); |
-} |
- |
-WebHeap::SafePointScope::~SafePointScope() |
-{ |
- WebCore::ThreadState::current()->leaveSafePoint(); |
+ String currency; |
+ if (details.get("transactionCurrency", currency)) |
+ transactionCurrency = WebString(currency); |
} |
} // namespace blink |