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

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

Issue 498603003: Cleanup namespace usage in Source/binding and Source/web (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | Source/bindings/modules/v8/IDBBindingUtilities.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, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef SerializedScriptValue_h 31 #ifndef SerializedScriptValue_h
32 #define SerializedScriptValue_h 32 #define SerializedScriptValue_h
33 33
34 #include "bindings/core/v8/ScriptValue.h" 34 #include "bindings/core/v8/ScriptValue.h"
35 #include "wtf/HashMap.h" 35 #include "wtf/HashMap.h"
36 #include "wtf/ThreadSafeRefCounted.h" 36 #include "wtf/ThreadSafeRefCounted.h"
37 #include <v8.h> 37 #include <v8.h>
38 38
39 namespace blink {
40
41 class WebBlobInfo;
42
43 }
44
45 namespace WTF { 39 namespace WTF {
46 40
47 class ArrayBuffer; 41 class ArrayBuffer;
48 class ArrayBufferContents; 42 class ArrayBufferContents;
49 43
50 } 44 }
51 45
52 namespace blink { 46 namespace blink {
53 47
54 class BlobDataHandle; 48 class BlobDataHandle;
55 class ExceptionState; 49 class ExceptionState;
56 class MessagePort; 50 class MessagePort;
51 class WebBlobInfo;
57 52
58 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; 53 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray;
59 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray; 54 typedef Vector<RefPtr<WTF::ArrayBuffer>, 1> ArrayBufferArray;
60 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap; 55 typedef HashMap<String, RefPtr<BlobDataHandle> > BlobDataHandleMap;
61 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray; 56 typedef Vector<blink::WebBlobInfo> WebBlobInfoArray;
62 57
63 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript Value> { 58 class SerializedScriptValue FINAL : public ThreadSafeRefCounted<SerializedScript Value> {
64 public: 59 public:
65 // Increment this for each incompatible change to the wire format. 60 // Increment this for each incompatible change to the wire format.
66 // Version 2: Added StringUCharTag for UChar v8 strings. 61 // Version 2: Added StringUCharTag for UChar v8 strings.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 121
127 String m_data; 122 String m_data;
128 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray; 123 OwnPtr<ArrayBufferContentsArray> m_arrayBufferContentsArray;
129 BlobDataHandleMap m_blobDataHandles; 124 BlobDataHandleMap m_blobDataHandles;
130 intptr_t m_externallyAllocatedMemory; 125 intptr_t m_externallyAllocatedMemory;
131 }; 126 };
132 127
133 } // namespace blink 128 } // namespace blink
134 129
135 #endif // SerializedScriptValue_h 130 #endif // SerializedScriptValue_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/modules/v8/IDBBindingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698