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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp

Issue 2388423003: reflow comments in modules/[fetch,indexeddb] (Closed)
Patch Set: rebase Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 << "Object store renamed when versionchange transaction is not active"; 494 << "Object store renamed when versionchange transaction is not active";
495 DCHECK(m_backend) << "Object store renamed after database connection closed"; 495 DCHECK(m_backend) << "Object store renamed after database connection closed";
496 DCHECK(m_metadata.objectStores.contains(objectStoreId)); 496 DCHECK(m_metadata.objectStores.contains(objectStoreId));
497 IDBDatabaseMetadata::ObjectStoreMap::iterator it = 497 IDBDatabaseMetadata::ObjectStoreMap::iterator it =
498 m_metadata.objectStores.find(objectStoreId); 498 m_metadata.objectStores.find(objectStoreId);
499 it->value.name = newName; 499 it->value.name = newName;
500 } 500 }
501 501
502 bool IDBDatabase::hasPendingActivity() const { 502 bool IDBDatabase::hasPendingActivity() const {
503 // The script wrapper must not be collected before the object is closed or 503 // The script wrapper must not be collected before the object is closed or
504 // we can't fire a "versionchange" event to let script manually close the conn ection. 504 // we can't fire a "versionchange" event to let script manually close the
505 // connection.
505 return !m_closePending && hasEventListeners() && !m_contextStopped; 506 return !m_closePending && hasEventListeners() && !m_contextStopped;
506 } 507 }
507 508
508 void IDBDatabase::contextDestroyed() { 509 void IDBDatabase::contextDestroyed() {
509 m_contextStopped = true; 510 m_contextStopped = true;
510 511
511 // Immediately close the connection to the back end. Don't attempt a 512 // Immediately close the connection to the back end. Don't attempt a
512 // normal close() since that may wait on transactions which require a 513 // normal close() since that may wait on transactions which require a
513 // round trip to the back-end to abort. 514 // round trip to the back-end to abort.
514 if (m_backend) { 515 if (m_backend) {
(...skipping 12 matching lines...) Expand all
527 528
528 void IDBDatabase::recordApiCallsHistogram(IndexedDatabaseMethods method) { 529 void IDBDatabase::recordApiCallsHistogram(IndexedDatabaseMethods method) {
529 DEFINE_THREAD_SAFE_STATIC_LOCAL( 530 DEFINE_THREAD_SAFE_STATIC_LOCAL(
530 EnumerationHistogram, apiCallsHistogram, 531 EnumerationHistogram, apiCallsHistogram,
531 new EnumerationHistogram("WebCore.IndexedDB.FrontEndAPICalls", 532 new EnumerationHistogram("WebCore.IndexedDB.FrontEndAPICalls",
532 IDBMethodsMax)); 533 IDBMethodsMax));
533 apiCallsHistogram.count(method); 534 apiCallsHistogram.count(method);
534 } 535 }
535 536
536 } // namespace blink 537 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698