Searched defs:estimatedSize (Results 1 - 16 of 16) sorted by relevance

/external/webkit/Source/WebKit/chromium/src/
H A DDatabaseObserver.cpp52 bool DatabaseObserver::canEstablishDatabase(ScriptExecutionContext* scriptExecutionContext, const String& name, const String& displayName, unsigned long estimatedSize) argument
59 return webFrame->client()->allowDatabase(webFrame, name, displayName, estimatedSize);
64 return webWorker->allowDatabase(0, name, displayName, estimatedSize);
H A DWebWorkerClientImpl.h97 virtual bool allowDatabase(WebFrame*, const WebString& name, const WebString& displayName, unsigned long estimatedSize) argument
H A DWebDatabase.cpp49 unsigned long long estimatedSize() const { return 0; } function in class:WebCore::AbstractDatabase
73 unsigned long WebDatabase::estimatedSize() const function in class:WebKit::WebDatabase
76 return m_database->estimatedSize();
H A DWebWorkerBase.cpp70 static PassRefPtr<AllowDatabaseMainThreadBridge> create(WebWorkerBase* worker, const WTF::String& mode, WebCommonWorkerClient* commonClient, WebFrame* frame, const WTF::String& name, const WTF::String& displayName, unsigned long estimatedSize) argument
72 return adoptRef(new AllowDatabaseMainThreadBridge(worker, mode, commonClient, frame, name, displayName, estimatedSize));
96 AllowDatabaseMainThreadBridge(WebWorkerBase* worker, const WTF::String& mode, WebCommonWorkerClient* commonClient, WebFrame* frame, const WTF::String& name, const WTF::String& displayName, unsigned long estimatedSize) argument
100 worker->dispatchTaskToMainThread(createCallbackTask(&allowDatabaseTask, commonClient, frame, String(name), String(displayName), estimatedSize, this));
103 static void allowDatabaseTask(WebCore::ScriptExecutionContext* context, WebCommonWorkerClient* commonClient, WebFrame* frame, const WTF::String name, const WTF::String displayName, unsigned long estimatedSize, PassRefPtr<AllowDatabaseMainThreadBridge> bridge) argument
108 bridge->signalCompleted(commonClient->allowDatabase(frame, name, displayName, estimatedSize));
218 bool WebWorkerBase::allowDatabase(WebFrame*, const WebString& name, const WebString& displayName, unsigned long estimatedSize) argument
228 RefPtr<AllowDatabaseMainThreadBridge> bridge = AllowDatabaseMainThreadBridge::create(this, mode, commonClient(), m_webView->mainFrame(), String(name), String(displayName), estimatedSize);
/external/webkit/Source/WebCore/storage/
H A DDatabaseSync.cpp50 unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec)
54 if (!DatabaseTracker::tracker().canEstablishDatabase(context, name, displayName, estimatedSize)) {
59 RefPtr<DatabaseSync> database = adoptRef(new DatabaseSync(context, name, expectedVersion, displayName, estimatedSize));
67 DatabaseTracker::tracker().setDatabaseDetails(context->securityOrigin(), name, displayName, estimatedSize);
79 const String& displayName, unsigned long estimatedSize)
80 : AbstractDatabase(context, name, expectedVersion, displayName, estimatedSize)
49 openDatabaseSync(ScriptExecutionContext* context, const String& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) argument
78 DatabaseSync(ScriptExecutionContext* context, const String& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize) argument
H A DDatabase.cpp90 unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback,
93 if (!DatabaseTracker::tracker().canEstablishDatabase(context, name, displayName, estimatedSize)) {
98 RefPtr<Database> database = adoptRef(new Database(context, name, expectedVersion, displayName, estimatedSize));
106 DatabaseTracker::tracker().setDatabaseDetails(context->securityOrigin(), name, displayName, estimatedSize);
125 Database::Database(ScriptExecutionContext* context, const String& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize) argument
126 : AbstractDatabase(context, name, expectedVersion, displayName, estimatedSize)
88 openDatabase(ScriptExecutionContext* context, const String& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& e) argument
H A DAbstractDatabase.cpp175 const String& displayName, unsigned long estimatedSize)
180 , m_estimatedSize(estimatedSize)
349 unsigned long AbstractDatabase::estimatedSize() const function in class:WebCore::AbstractDatabase
174 AbstractDatabase(ScriptExecutionContext* context, const String& name, const String& expectedVersion, const String& displayName, unsigned long estimatedSize) argument
H A DDatabaseTracker.cpp132 if (!m_database.executeCommand("CREATE TABLE Databases (guid INTEGER PRIMARY KEY AUTOINCREMENT, origin TEXT, name TEXT, displayName TEXT, estimatedSize INTEGER, path TEXT);")) {
139 bool DatabaseTracker::canEstablishDatabase(ScriptExecutionContext* context, const String& name, const String& displayName, unsigned long estimatedSize) argument
163 requirement = usage + max(1UL, estimatedSize);
174 details = ProposedDatabase(origin->threadsafeCopy(), DatabaseDetails(name.threadsafeCopy(), displayName.threadsafeCopy(), estimatedSize, 0));
428 SQLiteStatement statement(m_database, "SELECT displayName, estimatedSize FROM Databases WHERE origin=? AND name=?");
450 void DatabaseTracker::setDatabaseDetails(SecurityOrigin* origin, const String& name, const String& displayName, unsigned long estimatedSize) argument
485 SQLiteStatement updateStatement(m_database, "UPDATE Databases SET displayName=?, estimatedSize=? WHERE guid=?");
490 updateStatement.bindInt64(2, estimatedSize);
/external/webkit/Source/WebCore/storage/chromium/
H A DDatabaseTrackerChromium.cpp59 bool DatabaseTracker::canEstablishDatabase(ScriptExecutionContext* scriptExecutionContext, const String& name, const String& displayName, unsigned long estimatedSize) argument
61 return DatabaseObserver::canEstablishDatabase(scriptExecutionContext, name, displayName, estimatedSize);
/external/guava/guava/src/com/google/common/collect/
H A DLists.java180 * @param estimatedSize an estimate of the eventual {@link List#size()} of
184 * @throws IllegalArgumentException if {@code estimatedSize} is negative
188 int estimatedSize) {
189 return new ArrayList<E>(computeArrayListCapacity(estimatedSize));
187 newArrayListWithExpectedSize( int estimatedSize) argument
/external/webkit/Source/WebCore/workers/
H A DWorkerContext.cpp293 PassRefPtr<Database> WorkerContext::openDatabase(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) argument
300 return Database::openDatabase(this, name, version, displayName, estimatedSize, creationCallback, ec);
312 PassRefPtr<DatabaseSync> WorkerContext::openDatabaseSync(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) argument
319 return DatabaseSync::openDatabaseSync(this, name, version, displayName, estimatedSize, creationCallback, ec);
/external/webkit/Source/WebKit/android/WebCoreSupport/
H A DChromeClientAndroid.cpp411 unsigned long long estimatedSize = 0; local
413 // Only update estimatedSize if we are trying to create a a new database, i.e. the usage for the database is 0.
415 estimatedSize = tracker.detailsForNameAndOrigin(name, origin).expectedUsage();
417 if (android::WebViewCore::getWebViewCore(frame->view())->exceededDatabaseQuota(frame->document()->documentURI(), name, currentQuota, estimatedSize)) {
443 if (reclaimedQuotaBytes >= estimatedSize) {
/external/webkit/Source/WebKit/chromium/public/
H A DWebFrameClient.h299 virtual bool allowDatabase(WebFrame*, const WebString& name, const WebString& displayName, unsigned long estimatedSize) { return true; } argument
/external/icu4c/i18n/
H A Ducol_tok.cpp2169 uint32_t estimatedSize = (2*rulesLength+UCOL_TOK_EXTRA_RULE_SPACE_SIZE); local
2307 estimatedSize += importRulesLength*2;
2317 src->source = (UChar *)uprv_malloc(estimatedSize*sizeof(UChar));
2323 uprv_memset(src->source, 0, estimatedSize*sizeof(UChar));
2324 nSize = unorm_normalize(rules, rulesLength, UNORM_NFD, 0, src->source, estimatedSize, status);
2325 if(nSize > estimatedSize || *status == U_BUFFER_OVERFLOW_ERROR) {
2345 src->extraEnd = src->source+estimatedSize; //src->end+UCOL_TOK_EXTRA_RULE_SPACE_SIZE;
/external/webkit/Source/WebCore/page/
H A DDOMWindow.cpp1360 PassRefPtr<Database> DOMWindow::openDatabase(const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionCode& ec) argument
1364 database = Database::openDatabase(m_frame->document(), name, version, displayName, estimatedSize, creationCallback, ec);
/external/webkit/Source/WebKit/android/jni/
H A DWebViewCore.cpp3640 bool WebViewCore::exceededDatabaseQuota(const WTF::String& url, const WTF::String& databaseIdentifier, const unsigned long long currentQuota, unsigned long long estimatedSize) argument
3651 jDatabaseIdentifierStr, currentQuota, estimatedSize);

Completed in 256 milliseconds