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

Issue 9981015: Add an interface for Flash to clear its data. (Closed)

Created:
8 years, 8 months ago by brettw
Modified:
8 years, 8 months ago
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, Bernhard Bauer
Visibility:
Public.

Description

Add an interface for Flash to clear its data. This mirrors NPP_ClearSiteData. I basically just hooked into the existing infrastructure in the browser process, and create a new plugin. I changed the NPAPI IPC message to take the max age rather than compute it from the time so I did not have to duplicate the time computation code. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132067

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 12

Patch Set 5 : review comments #

Total comments: 1

Patch Set 6 : Fix browser tests #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -91 lines) Patch
M chrome/browser/browsing_data_remover.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/base/in_process_browser_test.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/plugin_data_remover_impl.h View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 3 4 5 6 7 8 12 chunks +88 lines, -30 lines 0 comments Download
M content/browser/plugin_data_remover_impl_browsertest.cc View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 1 chunk +12 lines, -6 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -10 lines 0 comments Download
M content/browser/renderer_host/pepper_file_message_filter.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_file_message_filter.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M content/common/plugin_messages.h View 1 chunk +3 lines, -4 lines 0 comments Download
M content/plugin/plugin_channel.h View 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_channel.cc View 2 chunks +1 line, -8 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 5 chunks +37 lines, -0 lines 0 comments Download
M content/public/browser/plugin_data_remover.h View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
A ppapi/api/private/ppp_flash_browser_operations.idl View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A ppapi/c/private/ppp_flash_browser_operations.h View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
brettw
8 years, 8 months ago (2012-04-04 23:20:37 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/9981015/diff/2001/content/browser/plugin_data_remover_impl.h File content/browser/plugin_data_remover_impl.h (right): http://codereview.chromium.org/9981015/diff/2001/content/browser/plugin_data_remover_impl.h#newcode13 content/browser/plugin_data_remover_impl.h:13: #include "base/memory/scoped_ptr.h" Nit: Is this necessary? http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl File ppapi/api/private/ppp_flash_clear_site_data.idl ...
8 years, 8 months ago (2012-04-05 10:01:38 UTC) #2
brettw
http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl File ppapi/api/private/ppp_flash_clear_site_data.idl (right): http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl#newcode33 ppapi/api/private/ppp_flash_clear_site_data.idl:33: void ClearSiteData(str_t site, On 2012/04/05 10:01:38, Bernhard Bauer wrote: ...
8 years, 8 months ago (2012-04-05 14:47:23 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl File ppapi/api/private/ppp_flash_clear_site_data.idl (right): http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl#newcode33 ppapi/api/private/ppp_flash_clear_site_data.idl:33: void ClearSiteData(str_t site, On 2012/04/05 14:47:23, brettw wrote: > ...
8 years, 8 months ago (2012-04-05 14:49:07 UTC) #4
viettrungluu
http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl File ppapi/api/private/ppp_flash_clear_site_data.idl (right): http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl#newcode33 ppapi/api/private/ppp_flash_clear_site_data.idl:33: void ClearSiteData(str_t site, This function needs to specify where ...
8 years, 8 months ago (2012-04-05 17:22:23 UTC) #5
Bernhard Bauer
http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl File ppapi/api/private/ppp_flash_clear_site_data.idl (right): http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl#newcode33 ppapi/api/private/ppp_flash_clear_site_data.idl:33: void ClearSiteData(str_t site, On 2012/04/05 17:22:24, viettrungluu wrote: > ...
8 years, 8 months ago (2012-04-05 18:49:36 UTC) #6
viettrungluu
On 2012/04/05 18:49:36, Bernhard Bauer wrote: > http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl > File ppapi/api/private/ppp_flash_clear_site_data.idl (right): > > http://codereview.chromium.org/9981015/diff/2001/ppapi/api/private/ppp_flash_clear_site_data.idl#newcode33 ...
8 years, 8 months ago (2012-04-05 19:51:54 UTC) #7
viettrungluu
Also, Brett, is there (or could you add) a way for Flapper to determine (preferably ...
8 years, 8 months ago (2012-04-05 20:06:18 UTC) #8
bauerb at google
On Thu Apr 05 21:51:54 GMT+200 2012, <viettrungluu@chromium.org> wrote: > On 2012/04/05 18:49:36, Bernhard Bauer ...
8 years, 8 months ago (2012-04-05 20:06:23 UTC) #9
viettrungluu
On 2012/04/05 20:06:23, please use chromium account wrote: > On Thu Apr 05 21:51:54 GMT+200 ...
8 years, 8 months ago (2012-04-06 02:54:42 UTC) #10
brettw
Uploaded a new one with a profile path and a return value. I renamed the ...
8 years, 8 months ago (2012-04-06 04:15:57 UTC) #11
brettw
ping
8 years, 8 months ago (2012-04-10 19:58:27 UTC) #12
Bernhard Bauer
LGTM w/ nits. Stupid question: If we have a per-profile directory for LSOs in Flapper, ...
8 years, 8 months ago (2012-04-10 20:13:43 UTC) #13
brettw
I actually implemented the directory stuff, I forgot I hadn't done that. It involved some ...
8 years, 8 months ago (2012-04-10 22:25:31 UTC) #14
viettrungluu
I reviewed this change backwards, so the context of my comments might make more sense ...
8 years, 8 months ago (2012-04-11 02:48:10 UTC) #15
brettw
Comments addressed, PTAL https://chromiumcodereview.appspot.com/9981015/diff/15002/content/plugin/plugin_channel.h File content/plugin/plugin_channel.h (right): https://chromiumcodereview.appspot.com/9981015/diff/15002/content/plugin/plugin_channel.h#newcode1 content/plugin/plugin_channel.h:1: // Copyright (c) 2011 The Chromium ...
8 years, 8 months ago (2012-04-11 21:22:34 UTC) #16
sky
LGTM
8 years, 8 months ago (2012-04-11 23:03:09 UTC) #17
viettrungluu
8 years, 8 months ago (2012-04-11 23:25:26 UTC) #18
LGTM with two nits.

https://chromiumcodereview.appspot.com/9981015/diff/14047/content/ppapi_plugi...
File content/ppapi_plugin/ppapi_thread.h (right):

https://chromiumcodereview.appspot.com/9981015/diff/14047/content/ppapi_plugi...
content/ppapi_plugin/ppapi_thread.h:14: #include "base/file_path.h"
Nit: unneeded.

https://chromiumcodereview.appspot.com/9981015/diff/14047/ppapi/api/private/p...
File ppapi/api/private/ppp_flash_browser_operations.idl (right):

https://chromiumcodereview.appspot.com/9981015/diff/14047/ppapi/api/private/p...
ppapi/api/private/ppp_flash_browser_operations.idl:21: * @profile_dir String
containing the directory where the plugin data is
You forgot to update the docs.

Powered by Google App Engine
This is Rietveld 408576698