OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/v8_value_converter_impl.h" | 5 #include "content/renderer/v8_value_converter_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/float_util.h" | 9 #include "base/float_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "third_party/WebKit/public/web/WebArrayBuffer.h" | 13 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
14 #include "third_party/WebKit/public/web/WebArrayBufferView.h" | 14 #include "third_party/WebKit/public/web/WebArrayBufferView.h" |
15 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 const int kMaxRecursionDepth = 10; | 20 const int kMaxRecursionDepth = 10; |
21 } | 21 } |
22 | 22 |
23 // The state of a call to FromV8Value. | 23 // The state of a call to FromV8Value. |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 continue; | 419 continue; |
420 | 420 |
421 result->SetWithoutPathExpansion(std::string(*name_utf8, name_utf8.length()), | 421 result->SetWithoutPathExpansion(std::string(*name_utf8, name_utf8.length()), |
422 child.release()); | 422 child.release()); |
423 } | 423 } |
424 | 424 |
425 return result.release(); | 425 return result.release(); |
426 } | 426 } |
427 | 427 |
428 } // namespace content | 428 } // namespace content |
OLD | NEW |