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

Issue 18221003: Convert WebIDBDatabaseImpl to IndexedDBConnection (Closed)

Created:
7 years, 5 months ago by jsbell
Modified:
7 years, 5 months ago
Reviewers:
dgrogan, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Convert WebIDBDatabaseImpl to IndexedDBConnection Simplify what was a proxy class with a little bit of state to just the state, and reveal its true nature as the object that binds a db callback to a database - i.e. the actual connection object. Track this, rather than the db callback, in the database itself so that the a database can operate on connections (e.g. force close them all in case of backing store error) BUG=234278 R=dgrogan@chromium.org TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209886

Patch Set 1 #

Patch Set 2 : Remove bogus DCHECK #

Patch Set 3 : Tidying #

Patch Set 4 : clang-format #

Total comments: 11

Patch Set 5 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -616 lines) Patch
M content/browser/indexed_db/indexed_db_callbacks.h View 3 chunks +3 lines, -11 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 2 10 chunks +27 lines, -31 lines 0 comments Download
A content/browser/indexed_db/indexed_db_connection.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A content/browser/indexed_db/indexed_db_connection.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 4 chunks +17 lines, -15 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 4 20 chunks +114 lines, -64 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 2 3 5 chunks +22 lines, -19 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 21 chunks +118 lines, -112 lines 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
D content/browser/indexed_db/webidbdatabase_impl.h View 1 chunk +0 lines, -103 lines 0 comments Download
D content/browser/indexed_db/webidbdatabase_impl.cc View 1 chunk +0 lines, -235 lines 0 comments Download
M content/content_browser.gypi View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jsbell
https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_callbacks.h File content/browser/indexed_db/indexed_db_callbacks.h (left): https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_callbacks.h#oldcode147 content/browser/indexed_db/indexed_db_callbacks.h:147: scoped_ptr<WebIDBDatabaseImpl> web_database_impl_; Unused even before this patch. https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_callbacks.h#oldcode148 content/browser/indexed_db/indexed_db_callbacks.h:148: ...
7 years, 5 months ago (2013-07-02 17:38:14 UTC) #1
jsbell
Forgot to mention my process here: 1. Rip the trampoline methods out of WebIDBDatabaseImpl (so ...
7 years, 5 months ago (2013-07-02 18:10:03 UTC) #2
dgrogan
lgtm https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_connection.h File content/browser/indexed_db/indexed_db_connection.h (right): https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_connection.h#newcode26 content/browser/indexed_db/indexed_db_connection.h:26: IndexedDBDatabaseCallbacks* callbacks() { return callbacks_; } These should ...
7 years, 5 months ago (2013-07-02 22:01:57 UTC) #3
jsbell
https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_connection.h File content/browser/indexed_db/indexed_db_connection.h (right): https://codereview.chromium.org/18221003/diff/7001/content/browser/indexed_db/indexed_db_connection.h#newcode26 content/browser/indexed_db/indexed_db_connection.h:26: IndexedDBDatabaseCallbacks* callbacks() { return callbacks_; } On 2013/07/02 22:01:58, ...
7 years, 5 months ago (2013-07-02 22:19:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18221003/20001
7 years, 5 months ago (2013-07-02 22:20:18 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13589
7 years, 5 months ago (2013-07-02 22:31:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/18221003/20001
7 years, 5 months ago (2013-07-02 22:42:52 UTC) #7
jsbell
TBR=jam for OWNERS review of the content_browser.gypi changes
7 years, 5 months ago (2013-07-02 22:43:48 UTC) #8
jam
gypi lgtm
7 years, 5 months ago (2013-07-02 22:59:12 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-07-03 04:33:50 UTC) #10
Message was sent while issue was closed.
Change committed as 209886

Powered by Google App Engine
This is Rietveld 408576698