diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 11:45:17 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-24 11:45:17 +0000 |
commit | 51f70bd8def42cd3adfcf6fd20940a8f0bcd3cb3 (patch) | |
tree | a29ceed1c11066cda3098a30083fca7a1007ad21 /chrome/browser/cocoa/cookie_tree_node.h | |
parent | fa80b6bd888d00b49ed87a3f5722e064141ffb46 (diff) | |
download | chromium_src-51f70bd8def42cd3adfcf6fd20940a8f0bcd3cb3.zip chromium_src-51f70bd8def42cd3adfcf6fd20940a8f0bcd3cb3.tar.gz chromium_src-51f70bd8def42cd3adfcf6fd20940a8f0bcd3cb3.tar.bz2 |
[Mac] Implement HTML5 database items in "Cookies and Other Data" dialog.
Code changes to support a new variant of CocoaCookieTreeNode that displays the information about web databases.
Changes to Cookies.xib: Added a new NSView "Database" in the existing information summary view for items selected in the cookie tree. This Database view provides the details for selected items that are web databases, and is in the same implement + layout style as the existing "Cookie" and "Local Storage" views. Added a key "databaseDescription" to the CocoaCookieTreeNode to support the display of the new node type.
TEST=manual testing in the "Cookies and Other Data" dialog
BUG=http://crbug.com/35191
Patch from Dan Clifford <danno@google.com>.
Review URL: http://codereview.chromium.org/596058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/cookie_tree_node.h')
-rw-r--r-- | chrome/browser/cocoa/cookie_tree_node.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/cookie_tree_node.h b/chrome/browser/cocoa/cookie_tree_node.h index 693895e..5101157 100644 --- a/chrome/browser/cocoa/cookie_tree_node.h +++ b/chrome/browser/cocoa/cookie_tree_node.h @@ -17,8 +17,11 @@ enum CocoaCookieTreeNodeType { // A cookie node. kCocoaCookieTreeNodeTypeCookie = 1, + // A HTML5 database storage node. + kCocoaCookieTreeNodeTypeDatabaseStorage = 2, + // A local storage node. - kCocoaCookieTreeNodeTypeLocalStorage = 2 + kCocoaCookieTreeNodeTypeLocalStorage = 3 }; // This class is used by CookiesWindowController and represents a node in the @@ -41,12 +44,18 @@ enum CocoaCookieTreeNodeType { scoped_nsobject<NSString> created_; scoped_nsobject<NSString> expires_; - // These members are only set for kCocoaCookieTreeNodeTypeLocalStorage nodes. + // These members are only set for kCocoaCookieTreeNodeTypeLocalStorage + // and kCocoaCookieTreeNodeTypeDatabaseStorage nodes. scoped_nsobject<NSString> fileSize_; scoped_nsobject<NSString> lastModified_; - // These members are set for both of the two specialized node types. + // These members are only set for kCocoaCookieTreeNodeTypeCookie and + // kCocoaCookieTreeNodeTypeLocalStorage nodes. scoped_nsobject<NSString> domain_; + + // These members are used only for nodes of type + // kCocoaCookieTreeNodeTypeDatabaseStorage. + scoped_nsobject<NSString> databaseDescription_; } // Designated initializer. @@ -75,8 +84,12 @@ enum CocoaCookieTreeNodeType { - (NSString*)created; - (NSString*)expires; -// Used by kCocoaCookieTreeNodeTypeLocalStorage nodes. Nil for other types. +// Used by kCocoaCookieTreeNodeTypeLocalStorage and +// kCocoaCookieTreeNodeTypeDatabaseStorage nodes. Nil for other types. - (NSString*)fileSize; - (NSString*)lastModified; +// Used by kCocoaCookieTreeNodeTypeDatabaseStorage nodes. Nil for other types. +- (NSString*)databaseDescription; + @end |