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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/Database.cpp ('k') | Source/modules/webdatabase/DatabaseManager.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 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class Database; 36 class Database;
37 class DatabaseContext; 37 class DatabaseContext;
38 class TaskSynchronizer; 38 class TaskSynchronizer;
39 class DatabaseThread; 39 class DatabaseThread;
40 class ExecutionContext; 40 class ExecutionContext;
41 class SecurityOrigin; 41 class SecurityOrigin;
42 42
43 class DatabaseContext FINAL 43 class DatabaseContext final
44 : public GarbageCollectedFinalized<DatabaseContext> 44 : public GarbageCollectedFinalized<DatabaseContext>
45 , public ActiveDOMObject { 45 , public ActiveDOMObject {
46 public: 46 public:
47 friend class DatabaseManager; 47 friend class DatabaseManager;
48 48
49 static DatabaseContext* create(ExecutionContext*); 49 static DatabaseContext* create(ExecutionContext*);
50 50
51 virtual ~DatabaseContext(); 51 virtual ~DatabaseContext();
52 void trace(Visitor*); 52 void trace(Visitor*);
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 stop() OVERRIDE; 56 virtual void stop() override;
57 57
58 DatabaseContext* backend(); 58 DatabaseContext* backend();
59 DatabaseThread* databaseThread(); 59 DatabaseThread* databaseThread();
60 bool databaseThreadAvailable(); 60 bool databaseThreadAvailable();
61 61
62 void setHasOpenDatabases() { m_hasOpenDatabases = true; } 62 void setHasOpenDatabases() { m_hasOpenDatabases = true; }
63 // Blocks the caller thread until cleanup tasks are completed. 63 // Blocks the caller thread until cleanup tasks are completed.
64 void stopDatabases(); 64 void stopDatabases();
65 65
66 bool allowDatabaseAccess() const; 66 bool allowDatabaseAccess() const;
67 67
68 SecurityOrigin* securityOrigin() const; 68 SecurityOrigin* securityOrigin() const;
69 bool isContextThread() const; 69 bool isContextThread() const;
70 70
71 private: 71 private:
72 explicit DatabaseContext(ExecutionContext*); 72 explicit DatabaseContext(ExecutionContext*);
73 73
74 Member<DatabaseThread> m_databaseThread; 74 Member<DatabaseThread> m_databaseThread;
75 bool m_hasOpenDatabases; // This never changes back to false, even after the database thread is closed. 75 bool m_hasOpenDatabases; // This never changes back to false, even after the 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
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/Database.cpp ('k') | Source/modules/webdatabase/DatabaseManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698