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

Issue 9348109: Add extra data to BrowserContext so that content layer and other embedders can stash data with it t… (Closed)

Created:
8 years, 10 months ago by jam
Modified:
8 years, 4 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Add extra data to BrowserContext so that content layer and other embedders can stash data with it that has the same lifetime. Converted SSLHostState to use it for now. I'll do the rest in a followup. BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122164

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -101 lines) Patch
M base/base.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A base/supports_user_data.h View 1 2 3 4 1 chunk +47 lines, -0 lines 1 comment Download
A base/supports_user_data.cc View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data_appcache_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_url_request_user_data.h View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_url_request_user_data.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_queue.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/ssl/ssl_host_state.h View 1 2 3 4 4 chunks +3 lines, -10 lines 0 comments Download
M content/browser/ssl/ssl_host_state.cc View 1 2 3 4 2 chunks +10 lines, -21 lines 0 comments Download
M content/browser/ssl/ssl_host_state_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/browser/browser_context.cc View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download
M content/public/browser/notification_types.h View 1 chunk +0 lines, -4 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 6 chunks +4 lines, -24 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/appcache/appcache_host.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M webkit/appcache/appcache_request_handler.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jam
here is change we talked about
8 years, 10 months ago (2012-02-14 22:08:59 UTC) #1
darin (slow to review)
http://codereview.chromium.org/9348109/diff/4014/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): http://codereview.chromium.org/9348109/diff/4014/content/public/browser/browser_context.h#newcode50 content/public/browser/browser_context.h:50: class UserData { Are you sure you want a ...
8 years, 10 months ago (2012-02-15 00:54:42 UTC) #2
jam
http://codereview.chromium.org/9348109/diff/4014/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): http://codereview.chromium.org/9348109/diff/4014/content/public/browser/browser_context.h#newcode50 content/public/browser/browser_context.h:50: class UserData { On 2012/02/15 00:54:42, darin wrote: > ...
8 years, 10 months ago (2012-02-15 01:01:17 UTC) #3
darin (slow to review)
http://codereview.chromium.org/9348109/diff/4042/base/supports_user_data.h File base/supports_user_data.h (right): http://codereview.chromium.org/9348109/diff/4042/base/supports_user_data.h#newcode24 base/supports_user_data.h:24: class BASE_EXPORT Data { curious: why drop the "User" ...
8 years, 10 months ago (2012-02-15 06:19:05 UTC) #4
jam
http://codereview.chromium.org/9348109/diff/4042/base/supports_user_data.h File base/supports_user_data.h (right): http://codereview.chromium.org/9348109/diff/4042/base/supports_user_data.h#newcode24 base/supports_user_data.h:24: class BASE_EXPORT Data { On 2012/02/15 06:19:05, darin wrote: ...
8 years, 10 months ago (2012-02-15 15:44:42 UTC) #5
joth
8 years, 4 months ago (2012-08-23 18:11:52 UTC) #6
https://chromiumcodereview.appspot.com/9348109/diff/9002/base/supports_user_d...
File base/supports_user_data.h (right):

https://chromiumcodereview.appspot.com/9348109/diff/9002/base/supports_user_d...
base/supports_user_data.h:16: // key. At destruction all the objects will be
destructed.
Is there some guideline when to use this vs. when to use base::PropertyBag ?
they both seem to be targeted at exactly the same use-case.

Powered by Google App Engine
This is Rietveld 408576698