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

Issue 340067: database_dispatcher_host changes. (Closed)

Created:
11 years, 1 month ago by dumi
Modified:
9 years, 7 months ago
Reviewers:
michaeln
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), Paweł Hajdan Jr., jam, ben+cc_chromium.org, ericu
Visibility:
Public.

Description

Adding support for DatabaseTracker messages to DatabaseDispatcherHost. This code will get called as soon as we switch from WebCore's DatabaseTracker implementation to Chromium's. Also, cleaned up the pre-existing support for VFS messages. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31507

Patch Set 1 #

Patch Set 2 : Added a GetDatabaseDispatcher() method to testing_profile.h. #

Patch Set 3 : Minor changes to how we validate file names. #

Patch Set 4 : Fixing the DEPS file. #

Total comments: 1

Patch Set 5 : Fixed the RMF reference. #

Total comments: 29

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : Fixing 2 minor bugs. Should turn the linux and mac buildbots green. #

Total comments: 25

Patch Set 8 : Cosmetic changes. #

Total comments: 2

Patch Set 9 : Addressed Michael's comments. #

Total comments: 4

Patch Set 10 : Forgot to save a file before uploading. #

Total comments: 6

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : Adding the changes to browser_render_process_host.cc which disable openDatabase() in incognito mode. #

Total comments: 6

Patch Set 15 : Addressed Michael's latest comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -231 lines) Patch
M chrome/DEPS View 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 14 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +84 lines, -34 lines 0 comments Download
M chrome/browser/renderer_host/database_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +325 lines, -184 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/db_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/common/db_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/test/testing_profile.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
michaeln
I haven't looked closely yet, but here's one thing that caught my eye... jam recently ...
11 years, 1 month ago (2009-11-03 03:47:11 UTC) #1
michaeln
http://codereview.chromium.org/340067/diff/3013/3020 File chrome/browser/renderer_host/database_dispatcher_host.h (right): http://codereview.chromium.org/340067/diff/3013/3020#newcode95 Line 95: scoped_refptr<ResourceMessageFilter> resource_message_filter_; Does this cause a reference cycle? ...
11 years, 1 month ago (2009-11-03 03:53:08 UTC) #2
michaeln
this is looking much better... i haven't looked at things real close yet but i ...
11 years, 1 month ago (2009-11-05 04:09:05 UTC) #3
michaeln
http://codereview.chromium.org/340067/diff/7001/8008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/340067/diff/7001/8008#newcode42 Line 42: shutdown_(false) { Some DCHECKs would be nice... DCHECK(db_tracker_ ...
11 years, 1 month ago (2009-11-05 17:09:14 UTC) #4
michaeln
Also, can you refresh my memory... are database_names case insensitive or case sensitive per the ...
11 years, 1 month ago (2009-11-05 17:44:38 UTC) #5
dumi
the DB names are case-sensitive, i double-checked. haven't looked at the lint errors yet -- ...
11 years, 1 month ago (2009-11-05 23:59:16 UTC) #6
michaeln
http://codereview.chromium.org/340067/diff/12001/13008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/340067/diff/12001/13008#newcode224 Line 224: FilePath db_file_name = GetDBFileFullPath(file_name); if db_file_name.empty() we can ...
11 years, 1 month ago (2009-11-06 02:37:01 UTC) #7
michaeln
http://codereview.chromium.org/340067/diff/14013/15011 File chrome/test/testing_profile.cc (right): http://codereview.chromium.org/340067/diff/14013/15011#newcode86 Line 86: db_tracker_ = new webkit_database::DatabaseTracker(path_); maybe construct it after ...
11 years, 1 month ago (2009-11-06 02:46:19 UTC) #8
dumi
http://codereview.chromium.org/340067/diff/12001/13008 File chrome/browser/renderer_host/database_dispatcher_host.cc (right): http://codereview.chromium.org/340067/diff/12001/13008#newcode224 Line 224: FilePath db_file_name = GetDBFileFullPath(file_name); On 2009/11/06 02:37:01, michaeln ...
11 years, 1 month ago (2009-11-06 19:51:05 UTC) #9
michaeln
almost... http://codereview.chromium.org/340067/diff/14021/15035 File chrome/browser/profile.cc (right): http://codereview.chromium.org/340067/diff/14021/15035#newcode203 Line 203: db_tracker_(NULL) { The default ctor will do ...
11 years, 1 month ago (2009-11-06 20:11:31 UTC) #10
dumi
http://codereview.chromium.org/340067/diff/14021/15035 File chrome/browser/profile.cc (right): http://codereview.chromium.org/340067/diff/14021/15035#newcode203 Line 203: db_tracker_(NULL) { On 2009/11/06 20:11:31, michaeln wrote: > ...
11 years, 1 month ago (2009-11-06 20:27:27 UTC) #11
michaeln
http://codereview.chromium.org/340067/diff/13023/12034 File chrome/browser/renderer_host/browser_render_process_host.cc (right): http://codereview.chromium.org/340067/diff/13023/12034#newcode545 Line 545: (!profile()->IsOffTheRecord()))) { This change to disable databases for ...
11 years, 1 month ago (2009-11-07 17:55:12 UTC) #12
michaeln
Also please update the CL description to indicate... * adding support for DatabaseTracker messages, but ...
11 years, 1 month ago (2009-11-07 19:19:54 UTC) #13
dumi
changed the CL description. http://codereview.chromium.org/340067/diff/13023/12034 File chrome/browser/renderer_host/browser_render_process_host.cc (right): http://codereview.chromium.org/340067/diff/13023/12034#newcode545 Line 545: (!profile()->IsOffTheRecord()))) { On 2009/11/07 ...
11 years, 1 month ago (2009-11-09 20:08:52 UTC) #14
michaeln
11 years, 1 month ago (2009-11-09 20:38:59 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698