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

Side by Side Diff: Source/modules/webdatabase/DatabaseContext.cpp

Issue 402433005: Oilpan: Remove support for tracing off-heap HashSets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix deadWrapper number in heap tests. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google, Inc. All Rights Reserved. 3 * Copyright (C) 2011 Google, Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 DatabaseContext::~DatabaseContext() 112 DatabaseContext::~DatabaseContext()
113 { 113 {
114 // For debug accounting only. We must call this last. The assertions assume 114 // For debug accounting only. We must call this last. The assertions assume
115 // this. 115 // this.
116 DatabaseManager::manager().didDestructDatabaseContext(); 116 DatabaseManager::manager().didDestructDatabaseContext();
117 } 117 }
118 118
119 void DatabaseContext::trace(Visitor* visitor) 119 void DatabaseContext::trace(Visitor* visitor)
120 { 120 {
121 #if ENABLE(OILPAN)
121 visitor->trace(m_databaseThread); 122 visitor->trace(m_databaseThread);
122 visitor->trace(m_openSyncDatabases); 123 visitor->trace(m_openSyncDatabases);
124 #endif
123 } 125 }
124 126
125 // This is called if the associated ExecutionContext is destructing while 127 // This is called if the associated ExecutionContext is destructing while
126 // we're still associated with it. That's our cue to disassociate and shutdown. 128 // we're still associated with it. That's our cue to disassociate and shutdown.
127 // To do this, we stop the database and let everything shutdown naturally 129 // To do this, we stop the database and let everything shutdown naturally
128 // because the database closing process may still make use of this context. 130 // because the database closing process may still make use of this context.
129 // It is not safe to just delete the context here. 131 // It is not safe to just delete the context here.
130 void DatabaseContext::contextDestroyed() 132 void DatabaseContext::contextDestroyed()
131 { 133 {
132 RefPtrWillBeRawPtr<DatabaseContext> protector(this); 134 RefPtrWillBeRawPtr<DatabaseContext> protector(this);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 { 260 {
259 return executionContext()->securityOrigin(); 261 return executionContext()->securityOrigin();
260 } 262 }
261 263
262 bool DatabaseContext::isContextThread() const 264 bool DatabaseContext::isContextThread() const
263 { 265 {
264 return executionContext()->isContextThread(); 266 return executionContext()->isContextThread();
265 } 267 }
266 268
267 } // namespace WebCore 269 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNodeOutput.cpp ('k') | Source/modules/webdatabase/DatabaseThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698