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

Side by Side Diff: Source/modules/webdatabase/DatabaseManager.h

Issue 215063005: Oilpan: Prepare to move DatabaseContext to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 PassRefPtrWillBeRawPtr<DatabaseBackendBase> openDatabaseBackend(ExecutionCon text*, 93 PassRefPtrWillBeRawPtr<DatabaseBackendBase> openDatabaseBackend(ExecutionCon text*,
94 DatabaseType, const String& name, const String& expectedVersion, const S tring& displayName, 94 DatabaseType, const String& name, const String& expectedVersion, const S tring& displayName,
95 unsigned long estimatedSize, bool setVersionInNewDatabase, DatabaseError &, String& errorMessage); 95 unsigned long estimatedSize, bool setVersionInNewDatabase, DatabaseError &, String& errorMessage);
96 96
97 static void logErrorMessage(ExecutionContext*, const String& message); 97 static void logErrorMessage(ExecutionContext*, const String& message);
98 98
99 AbstractDatabaseServer* m_server; 99 AbstractDatabaseServer* m_server;
100 100
101 // Access to the following fields require locking m_contextMapLock: 101 // Access to the following fields require locking m_contextMapLock:
102 #if ENABLE(OILPAN)
103 // We can't use PersistentHeapHashMap because multiple threads update the ma p.
haraken 2014/03/28 01:03:24 What's the issue of updating a PersistentHeapHashM
tkent 2014/03/28 01:17:25 When the (Persistent)HeapHashMap gets new value an
104 typedef HashMap<ExecutionContext*, OwnPtr<Persistent<DatabaseContext> > > Co ntextMap;
105 #else
102 typedef HashMap<ExecutionContext*, RefPtr<DatabaseContext> > ContextMap; 106 typedef HashMap<ExecutionContext*, RefPtr<DatabaseContext> > ContextMap;
107 #endif
103 ContextMap m_contextMap; 108 ContextMap m_contextMap;
104 #if !ASSERT_DISABLED 109 #if !ASSERT_DISABLED
105 int m_databaseContextRegisteredCount; 110 int m_databaseContextRegisteredCount;
106 int m_databaseContextInstanceCount; 111 int m_databaseContextInstanceCount;
107 #endif 112 #endif
108 Mutex m_contextMapLock; 113 Mutex m_contextMapLock;
109 }; 114 };
110 115
111 } // namespace WebCore 116 } // namespace WebCore
112 117
113 #endif // DatabaseManager_h 118 #endif // DatabaseManager_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseContext.cpp ('k') | Source/modules/webdatabase/DatabaseManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698