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

Unified Diff: chrome/browser/ui/cocoa/content_settings/cookie_details.h

Issue 1297093002: Cache Storage API: Hook up to chrome://settings/cookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto https://codereview.chromium.org/1297023004 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/content_settings/cookie_details.h
diff --git a/chrome/browser/ui/cocoa/content_settings/cookie_details.h b/chrome/browser/ui/cocoa/content_settings/cookie_details.h
index 0148f6b99c2b8cd912ff50ff583a89f1d1575ed9..ca9d5c917176278bb9e8df29cabafcdea25a74c4 100644
--- a/chrome/browser/ui/cocoa/content_settings/cookie_details.h
+++ b/chrome/browser/ui/cocoa/content_settings/cookie_details.h
@@ -5,6 +5,7 @@
#import <Cocoa/Cocoa.h>
#include "base/mac/scoped_nsobject.h"
+#include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h"
#include "chrome/browser/browsing_data/browsing_data_database_helper.h"
#include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h"
#include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h"
@@ -47,6 +48,10 @@ enum CocoaCookieDetailsType {
// cookie tree.
kCocoaCookieDetailsTypeTreeServiceWorker,
+ // Detailed information about Cache Storage used for display in the
+ // cookie tree.
+ kCocoaCookieDetailsTypeTreeCacheStorage,
+
// Detailed information about a web database used for display
// in the cookie prompt dialog.
kCocoaCookieDetailsTypePromptDatabase,
@@ -98,13 +103,15 @@ enum CocoaCookieDetailsType {
// kCocoaCookieDetailsTypeTreeDatabase,
// kCocoaCookieDetailsTypePromptDatabase,
// kCocoaCookieDetailsTypeTreeIndexedDB,
- // kCocoaCookieDetailsTypeTreeServiceWorker, and
+ // kCocoaCookieDetailsTypeTreeServiceWorker,
+ // kCocoaCookieDetailsTypeTreeCacheStorage, and
// kCocoaCookieDetailsTypeTreeAppCache nodes.
base::scoped_nsobject<NSString> fileSize_;
// Only set for types kCocoaCookieDetailsTypeTreeLocalStorage,
// kCocoaCookieDetailsTypeTreeDatabase,
- // kCocoaCookieDetailsTypeTreeServiceWorker, and
+ // kCocoaCookieDetailsTypeTreeServiceWorker,
+ // kCocoaCookieDetailsTypeTreeCacheStorage, and
// kCocoaCookieDetailsTypeTreeIndexedDB nodes.
base::scoped_nsobject<NSString> lastModified_;
@@ -114,7 +121,8 @@ enum CocoaCookieDetailsType {
// Only set for type kCocoaCookieDetailsTypeCookie,
// kCocoaCookieDetailsTypePromptDatabase,
// kCocoaCookieDetailsTypePromptLocalStorage,
- // kCocoaCookieDetailsTypePromptServiceWorker, and
+ // kCocoaCookieDetailsTypePromptServiceWorker,
+ // kCocoaCookieDetailsTypePromptCacheStorage, and
// kCocoaCookieDetailsTypeTreeIndexedDB nodes.
base::scoped_nsobject<NSString> domain_;
@@ -156,6 +164,7 @@ enum CocoaCookieDetailsType {
- (BOOL)shouldShowAppCacheTreeDetailsView;
- (BOOL)shouldShowIndexedDBTreeDetailsView;
- (BOOL)shouldShowServiceWorkerTreeDetailsView;
+- (BOOL)shouldShowCacheStorageTreeDetailsView;
- (NSString*)name;
- (NSString*)content;
@@ -216,6 +225,10 @@ enum CocoaCookieDetailsType {
- (id)initWithServiceWorkerUsageInfo:
(const content::ServiceWorkerUsageInfo*)serviceWorker;
+// Used for CacheStorage details in the cookie tree.
+- (id)initWithCacheStorageUsageInfo:
+ (const content::CacheStorageUsageInfo*)cacheStorage;
+
// A factory method to create a configured instance given a node from
// the cookie tree in |treeNode|.
+ (CocoaCookieDetails*)createFromCookieTreeNode:(CookieTreeNode*)treeNode;
« no previous file with comments | « chrome/browser/resources/options/cookies_list.js ('k') | chrome/browser/ui/cocoa/content_settings/cookie_details.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698