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

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

Issue 196543003: Remove modules/webdatabase dependency from core. (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
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('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) 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class DatabaseContext FINAL : public ThreadSafeRefCounted<DatabaseContext>, publ ic ActiveDOMObject { 46 class DatabaseContext FINAL : public ThreadSafeRefCounted<DatabaseContext>, publ ic ActiveDOMObject {
47 public: 47 public:
48 friend class DatabaseManager; 48 friend class DatabaseManager;
49 49
50 static PassRefPtr<DatabaseContext> create(ExecutionContext*); 50 static PassRefPtr<DatabaseContext> create(ExecutionContext*);
51 51
52 virtual ~DatabaseContext(); 52 virtual ~DatabaseContext();
53 53
54 // For life-cycle management (inherited from ActiveDOMObject): 54 // For life-cycle management (inherited from ActiveDOMObject):
55 virtual void contextDestroyed() OVERRIDE; 55 virtual void contextDestroyed() OVERRIDE;
56 virtual void willStop() OVERRIDE;
56 virtual void stop() OVERRIDE; 57 virtual void stop() OVERRIDE;
57 58
58 PassRefPtr<DatabaseContext> backend(); 59 PassRefPtr<DatabaseContext> backend();
59 DatabaseThread* databaseThread(); 60 DatabaseThread* databaseThread();
60 61
61 void setHasOpenDatabases() { m_hasOpenDatabases = true; } 62 void setHasOpenDatabases() { m_hasOpenDatabases = true; }
62 void didOpenDatabase(DatabaseBackendBase&); 63 void didOpenDatabase(DatabaseBackendBase&);
63 void didCloseDatabase(DatabaseBackendBase&); 64 void didCloseDatabase(DatabaseBackendBase&);
64 // Blocks the caller thread until cleanup tasks are completed. 65 // Blocks the caller thread until cleanup tasks are completed.
65 void stopDatabases(); 66 void stopDatabases();
(...skipping 13 matching lines...) Expand all
79 // DatabaseBackendSync is always closed before destruction. 80 // DatabaseBackendSync is always closed before destruction.
80 HashSet<DatabaseBackendBase*> m_openSyncDatabases; 81 HashSet<DatabaseBackendBase*> m_openSyncDatabases;
81 bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed. 82 bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed.
82 bool m_isRegistered; 83 bool m_isRegistered;
83 bool m_hasRequestedTermination; 84 bool m_hasRequestedTermination;
84 }; 85 };
85 86
86 } // namespace WebCore 87 } // namespace WebCore
87 88
88 #endif // DatabaseContext_h 89 #endif // DatabaseContext_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/webdatabase/DatabaseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698