Chromium Code Reviews
DescriptionAbstract content::SessionStorageNamespace from core TabRestore code
//content dependencies must be abstracted from core TabRestore code in
order for that code to be cleanly integrated on iOS. This CL tackles
the dependency on content::SessionStorageNamespace.
Currently, a TabRestoreService::Tab holds a scoped_refptr to the
content::SessionStorageNamespace associated with the WebContents from
which that Tab was created. This CL introduces the concept of
TabClientData, which is an object that is supplied to the Tab by the
TabRestoreServiceClient. Embedders may create subclasses of TabClientData,
which they can cast the TabClientData back to when they receive it
in their implementations of the relevant TabRestoreServiceDelegate methods.
This CL introduces a ContentTabClientData subclass that is a container for a
scoped_refptr<content::SessionStorageNamespace>, and changes //chrome-level
code to use ContentTabClientData to maintain the association between Tabs and
SessionStorageNamespaces.
BUG=530171
Committed: https://crrev.com/7f80ba17fa6d0dff158493f6d38554cb7e59c338
Cr-Commit-Position: refs/heads/master@{#349378}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Use scoped_refptr #Patch Set 4 : Fixes #Patch Set 5 : Hopefully fix Windows #
Total comments: 3
Patch Set 6 : Response to review #Dependent Patchsets: Messages
Total messages: 9 (2 generated)
|