OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2013 Apple 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 18 matching lines...) Expand all Loading... |
29 #ifndef DatabaseTracker_h | 29 #ifndef DatabaseTracker_h |
30 #define DatabaseTracker_h | 30 #define DatabaseTracker_h |
31 | 31 |
32 #include "modules/webdatabase/DatabaseError.h" | 32 #include "modules/webdatabase/DatabaseError.h" |
33 #include "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
34 #include "wtf/HashSet.h" | 34 #include "wtf/HashSet.h" |
35 #include "wtf/ThreadingPrimitives.h" | 35 #include "wtf/ThreadingPrimitives.h" |
36 #include "wtf/text/StringHash.h" | 36 #include "wtf/text/StringHash.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
40 | 40 |
41 class DatabaseBackendBase; | 41 class DatabaseBackendBase; |
42 class DatabaseContext; | 42 class DatabaseContext; |
43 class OriginLock; | 43 class OriginLock; |
44 class SecurityOrigin; | 44 class SecurityOrigin; |
45 | 45 |
46 class DatabaseTracker { | 46 class DatabaseTracker { |
47 WTF_MAKE_NONCOPYABLE(DatabaseTracker); WTF_MAKE_FAST_ALLOCATED; | 47 WTF_MAKE_NONCOPYABLE(DatabaseTracker); WTF_MAKE_FAST_ALLOCATED; |
48 public: | 48 public: |
49 static DatabaseTracker& tracker(); | 49 static DatabaseTracker& tracker(); |
(...skipping 25 matching lines...) Expand all Loading... |
75 class CloseOneDatabaseImmediatelyTask; | 75 class CloseOneDatabaseImmediatelyTask; |
76 | 76 |
77 DatabaseTracker(); | 77 DatabaseTracker(); |
78 | 78 |
79 void closeOneDatabaseImmediately(const String& originIdentifier, const Strin
g& name, DatabaseBackendBase*); | 79 void closeOneDatabaseImmediately(const String& originIdentifier, const Strin
g& name, DatabaseBackendBase*); |
80 | 80 |
81 Mutex m_openDatabaseMapGuard; | 81 Mutex m_openDatabaseMapGuard; |
82 mutable OwnPtr<DatabaseOriginMap> m_openDatabaseMap; | 82 mutable OwnPtr<DatabaseOriginMap> m_openDatabaseMap; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace WebCore | 85 } // namespace blink |
86 | 86 |
87 #endif // DatabaseTracker_h | 87 #endif // DatabaseTracker_h |
OLD | NEW |