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

Side by Side Diff: Source/bindings/core/v8/V8StringResource.h

Issue 626693003: Clean up forward declarations and include files in Source/bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/bindings/core/v8/V8PerIsolateData.h ('k') | Source/bindings/core/v8/WindowProxy.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef V8StringResource_h 26 #ifndef V8StringResource_h
27 #define V8StringResource_h 27 #define V8StringResource_h
28 28
29 #include "bindings/core/v8/ExceptionState.h" 29 #include "bindings/core/v8/ExceptionState.h"
30 #include "wtf/Threading.h" 30 #include "wtf/Threading.h"
31 #include "wtf/text/AtomicString.h" 31 #include "wtf/text/AtomicString.h"
32 #include "wtf/text/WTFString.h"
33 #include <v8.h> 32 #include <v8.h>
34 33
35 namespace blink { 34 namespace blink {
36 35
37 class ExternalStringVisitor;
38
39 // WebCoreStringResource is a helper class for v8ExternalString. It is used 36 // WebCoreStringResource is a helper class for v8ExternalString. It is used
40 // to manage the life-cycle of the underlying buffer of the external string. 37 // to manage the life-cycle of the underlying buffer of the external string.
41 class WebCoreStringResourceBase { 38 class WebCoreStringResourceBase {
42 public: 39 public:
43 explicit WebCoreStringResourceBase(const String& string) 40 explicit WebCoreStringResourceBase(const String& string)
44 : m_plainString(string) 41 : m_plainString(string)
45 { 42 {
46 #if ENABLE(ASSERT) 43 #if ENABLE(ASSERT)
47 m_threadId = WTF::currentThread(); 44 m_threadId = WTF::currentThread();
48 #endif 45 #endif
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 307 }
311 308
312 template<> inline String V8StringResource<TreatNullAndUndefinedAsNullString>::fa llbackString() const 309 template<> inline String V8StringResource<TreatNullAndUndefinedAsNullString>::fa llbackString() const
313 { 310 {
314 return String(); 311 return String();
315 } 312 }
316 313
317 } // namespace blink 314 } // namespace blink
318 315
319 #endif // V8StringResource_h 316 #endif // V8StringResource_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8PerIsolateData.h ('k') | Source/bindings/core/v8/WindowProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698