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

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

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class DatabaseContext FINAL 47 class DatabaseContext FINAL
48 : public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<DatabaseContext > 48 : public ThreadSafeRefCountedWillBeGarbageCollectedFinalized<DatabaseContext >
49 , public ActiveDOMObject 49 , public ActiveDOMObject
50 , private WorkerGlobalScope::TerminationObserver { 50 , private WorkerGlobalScope::TerminationObserver {
51 public: 51 public:
52 friend class DatabaseManager; 52 friend class DatabaseManager;
53 53
54 static PassRefPtrWillBeRawPtr<DatabaseContext> create(ExecutionContext*); 54 static PassRefPtrWillBeRawPtr<DatabaseContext> create(ExecutionContext*);
55 55
56 virtual ~DatabaseContext(); 56 virtual ~DatabaseContext();
57 void trace(Visitor*); 57 virtual void trace(Visitor*);
58 58
59 // For life-cycle management (inherited from ActiveDOMObject): 59 // For life-cycle management (inherited from ActiveDOMObject):
60 virtual void contextDestroyed() OVERRIDE; 60 virtual void contextDestroyed() OVERRIDE;
61 virtual void stop() OVERRIDE; 61 virtual void stop() OVERRIDE;
62 62
63 DatabaseContext* backend(); 63 DatabaseContext* backend();
64 DatabaseThread* databaseThread(); 64 DatabaseThread* databaseThread();
65 65
66 void setHasOpenDatabases() { m_hasOpenDatabases = true; } 66 void setHasOpenDatabases() { m_hasOpenDatabases = true; }
67 void didOpenDatabase(DatabaseBackendBase&); 67 void didOpenDatabase(DatabaseBackendBase&);
(...skipping 28 matching lines...) Expand all
96 // DatabaseBackendSync is always closed before destruction. 96 // DatabaseBackendSync is always closed before destruction.
97 HashSet<DatabaseBackendBase*> m_openSyncDatabases; 97 HashSet<DatabaseBackendBase*> m_openSyncDatabases;
98 #endif 98 #endif
99 bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed. 99 bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed.
100 bool m_hasRequestedTermination; 100 bool m_hasRequestedTermination;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // DatabaseContext_h 105 #endif // DatabaseContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698