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

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

Issue 461163002: Cleanup namespace usage in Source/core/modules/[mediasource/* to websockets/*] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/modules/webdatabase/DatabaseTask.h ('k') | Source/modules/webmidi/MIDIAccessor.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SQLTransactionClient* transactionClient() { return m_transactionClient.get() ; } 72 SQLTransactionClient* transactionClient() { return m_transactionClient.get() ; }
73 SQLTransactionCoordinator* transactionCoordinator() { return m_transactionCo ordinator.get(); } 73 SQLTransactionCoordinator* transactionCoordinator() { return m_transactionCo ordinator.get(); }
74 74
75 private: 75 private:
76 DatabaseThread(); 76 DatabaseThread();
77 77
78 void setupDatabaseThread(); 78 void setupDatabaseThread();
79 void cleanupDatabaseThread(); 79 void cleanupDatabaseThread();
80 void cleanupDatabaseThreadCompleted(); 80 void cleanupDatabaseThreadCompleted();
81 81
82 OwnPtr<blink::WebThread> m_thread; 82 OwnPtr<WebThread> m_thread;
83 83
84 // This set keeps track of the open databases that have been used on this th read. 84 // This set keeps track of the open databases that have been used on this th read.
85 // This must be updated in the database thread though it is constructed and 85 // This must be updated in the database thread though it is constructed and
86 // destructed in the context thread. 86 // destructed in the context thread.
87 WillBeHeapHashSet<RefPtrWillBeMember<DatabaseBackend> > m_openDatabaseSet; 87 WillBeHeapHashSet<RefPtrWillBeMember<DatabaseBackend> > m_openDatabaseSet;
88 88
89 OwnPtr<SQLTransactionClient> m_transactionClient; 89 OwnPtr<SQLTransactionClient> m_transactionClient;
90 OwnPtrWillBeMember<SQLTransactionCoordinator> m_transactionCoordinator; 90 OwnPtrWillBeMember<SQLTransactionCoordinator> m_transactionCoordinator;
91 TaskSynchronizer* m_cleanupSync; 91 TaskSynchronizer* m_cleanupSync;
92 92
93 mutable Mutex m_terminationRequestedMutex; 93 mutable Mutex m_terminationRequestedMutex;
94 bool m_terminationRequested; 94 bool m_terminationRequested;
95 OwnPtr<PendingGCRunner> m_pendingGCRunner; 95 OwnPtr<PendingGCRunner> m_pendingGCRunner;
96 OwnPtr<MessageLoopInterruptor> m_messageLoopInterruptor; 96 OwnPtr<MessageLoopInterruptor> m_messageLoopInterruptor;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // DatabaseThread_h 101 #endif // DatabaseThread_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseTask.h ('k') | Source/modules/webmidi/MIDIAccessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698