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

Side by Side Diff: Source/platform/Supplementable.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/StorageQuotaCallbacks.h ('k') | Source/platform/Task.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) 2012 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2012 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 18 matching lines...) Expand all
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 #include "wtf/Assertions.h" 30 #include "wtf/Assertions.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/OwnPtr.h" 32 #include "wtf/OwnPtr.h"
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 34
35 #if ENABLE(ASSERT) 35 #if ENABLE(ASSERT)
36 #include "wtf/Threading.h" 36 #include "wtf/Threading.h"
37 #endif 37 #endif
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 // What you should know about Supplementable and Supplement 41 // What you should know about Supplementable and Supplement
42 // ======================================================== 42 // ========================================================
43 // Supplementable and Supplement instances are meant to be thread local. They 43 // Supplementable and Supplement instances are meant to be thread local. They
44 // should only be accessed from within the thread that created them. The 44 // should only be accessed from within the thread that created them. The
45 // 2 classes are not designed for safe access from another thread. Violating 45 // 2 classes are not designed for safe access from another thread. Violating
46 // this design assumption can result in memory corruption and unpredictable 46 // this design assumption can result in memory corruption and unpredictable
47 // behavior. 47 // behavior.
48 // 48 //
49 // What you should know about the Supplement keys 49 // What you should know about the Supplement keys
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 TraceDelegate m_root; 240 TraceDelegate m_root;
241 }; 241 };
242 242
243 template<typename T> 243 template<typename T>
244 class Supplement : public SupplementBase<T, false> { }; 244 class Supplement : public SupplementBase<T, false> { };
245 245
246 template<typename T> 246 template<typename T>
247 class Supplementable : public SupplementableBase<T, false> { }; 247 class Supplementable : public SupplementableBase<T, false> { };
248 248
249 template<typename T> 249 template<typename T>
250 struct ThreadingTrait<WebCore::SupplementBase<T, true> > { 250 struct ThreadingTrait<blink::SupplementBase<T, true> > {
251 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; 251 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
252 }; 252 };
253 253
254 template<typename T> 254 template<typename T>
255 struct ThreadingTrait<WebCore::SupplementableBase<T, true> > { 255 struct ThreadingTrait<blink::SupplementableBase<T, true> > {
256 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity; 256 static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
257 }; 257 };
258 258
259 } // namespace WebCore 259 } // namespace blink
260 260
261 #endif // Supplementable_h 261 #endif // Supplementable_h
OLDNEW
« no previous file with comments | « Source/platform/StorageQuotaCallbacks.h ('k') | Source/platform/Task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698