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

Side by Side Diff: Source/modules/webdatabase/DatabaseManager.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 static void throwExceptionForDatabaseError(DatabaseError, const String& erro rMessage, ExceptionState&); 75 static void throwExceptionForDatabaseError(DatabaseError, const String& erro rMessage, ExceptionState&);
76 76
77 PassRefPtrWillBeRawPtr<Database> openDatabase(ExecutionContext*, const Strin g& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize, PassOwnPtr<DatabaseCallback>, DatabaseError&, String& errorMessa ge); 77 PassRefPtrWillBeRawPtr<Database> openDatabase(ExecutionContext*, const Strin g& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize, PassOwnPtr<DatabaseCallback>, DatabaseError&, String& errorMessa ge);
78 PassRefPtrWillBeRawPtr<DatabaseSync> openDatabaseSync(ExecutionContext*, con st String& name, const String& expectedVersion, const String& displayName, unsig ned long estimatedSize, PassOwnPtr<DatabaseCallback>, DatabaseError&, String& er rorMessage); 78 PassRefPtrWillBeRawPtr<DatabaseSync> openDatabaseSync(ExecutionContext*, con st String& name, const String& expectedVersion, const String& displayName, unsig ned long estimatedSize, PassOwnPtr<DatabaseCallback>, DatabaseError&, String& er rorMessage);
79 79
80 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI fDoesNotExist = true); 80 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI fDoesNotExist = true);
81 81
82 void closeDatabasesImmediately(const String& originIdentifier, const String& name); 82 void closeDatabasesImmediately(const String& originIdentifier, const String& name);
83 83
84 void interruptAllDatabasesForContext(ExecutionContext*); 84 void interruptAllDatabasesForContext(DatabaseContext*);
85 85
86 private: 86 private:
87 DatabaseManager(); 87 DatabaseManager();
88 ~DatabaseManager() { } 88 ~DatabaseManager() { }
89 89
90 // This gets a DatabaseContext for the specified ExecutionContext if 90 // This gets a DatabaseContext for the specified ExecutionContext if
91 // it already exist previously. Otherwise, it returns 0. 91 // it already exist previously. Otherwise, it returns 0.
92 PassRefPtr<DatabaseContext> existingDatabaseContextFor(ExecutionContext*); 92 PassRefPtr<DatabaseContext> existingDatabaseContextFor(ExecutionContext*);
93 93
94 PassRefPtrWillBeRawPtr<DatabaseBackendBase> openDatabaseBackend(ExecutionCon text*, 94 PassRefPtrWillBeRawPtr<DatabaseBackendBase> openDatabaseBackend(ExecutionCon text*,
(...skipping 10 matching lines...) Expand all
105 #if !ASSERT_DISABLED 105 #if !ASSERT_DISABLED
106 int m_databaseContextRegisteredCount; 106 int m_databaseContextRegisteredCount;
107 int m_databaseContextInstanceCount; 107 int m_databaseContextInstanceCount;
108 #endif 108 #endif
109 Mutex m_contextMapLock; 109 Mutex m_contextMapLock;
110 }; 110 };
111 111
112 } // namespace WebCore 112 } // namespace WebCore
113 113
114 #endif // DatabaseManager_h 114 #endif // DatabaseManager_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/DatabaseContext.cpp ('k') | Source/modules/webdatabase/DatabaseManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698