OLD | NEW |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 bool allowDatabaseAccess() const; | 65 bool allowDatabaseAccess() const; |
66 | 66 |
67 SecurityOrigin* getSecurityOrigin() const; | 67 SecurityOrigin* getSecurityOrigin() const; |
68 bool isContextThread() const; | 68 bool isContextThread() const; |
69 | 69 |
70 private: | 70 private: |
71 explicit DatabaseContext(ExecutionContext*); | 71 explicit DatabaseContext(ExecutionContext*); |
72 | 72 |
73 Member<DatabaseThread> m_databaseThread; | 73 Member<DatabaseThread> m_databaseThread; |
74 bool | 74 bool m_hasOpenDatabases; // This never changes back to false, even after the |
75 m_hasOpenDatabases; // This never changes back to false, even after the d
atabase thread is closed. | 75 // database thread is closed. |
76 bool m_hasRequestedTermination; | 76 bool m_hasRequestedTermination; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
80 | 80 |
81 #endif // DatabaseContext_h | 81 #endif // DatabaseContext_h |
OLD | NEW |