| Index: chrome/browser/gtk/options/cookies_view.h
|
| ===================================================================
|
| --- chrome/browser/gtk/options/cookies_view.h (revision 36552)
|
| +++ chrome/browser/gtk/options/cookies_view.h (working copy)
|
| @@ -12,6 +12,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/scoped_ptr.h"
|
| #include "base/task.h"
|
| +#include "chrome/browser/browsing_data_local_storage_helper.h"
|
| #include "chrome/common/gtk_tree.h"
|
| #include "net/base/cookie_monster.h"
|
| #include "testing/gtest/include/gtest/gtest_prod.h"
|
| @@ -46,8 +47,9 @@
|
| // Initialize the widget styles and display the dialog.
|
| void InitStylesAndShow();
|
|
|
| - // Helper for initializing cookie details table.
|
| - void InitCookieDetailRow(int row, int label_id, GtkWidget** display_label);
|
| + // Helper for initializing cookie / local storage details table.
|
| + void InitDetailRow(int row, int label_id,
|
| + GtkWidget* details_table, GtkWidget** display_label);
|
|
|
| // Set the initial selection and tree expanded state.
|
| void SetInitialTreeState();
|
| @@ -58,10 +60,18 @@
|
| // Set sensitivity of cookie details.
|
| void SetCookieDetailsSensitivity(gboolean enabled);
|
|
|
| + // Set sensitivity of local storage details.
|
| + void SetLocalStorageDetailsSensitivity(gboolean enabled);
|
| +
|
| // Show the details of the currently selected cookie.
|
| void PopulateCookieDetails(const std::string& domain,
|
| const net::CookieMonster::CanonicalCookie& cookie);
|
|
|
| + // Show the details of the currently selected local storage.
|
| + void PopulateLocalStorageDetails(
|
| + const BrowsingDataLocalStorageHelper::LocalStorageInfo&
|
| + local_storage_info);
|
| +
|
| // Reset the cookie details display.
|
| void ClearCookieDetails();
|
|
|
| @@ -90,6 +100,9 @@
|
| // Filter the list against the text in |filter_entry_|.
|
| void UpdateFilterResults();
|
|
|
| + // Sets which of the detailed info table is visible.
|
| + void UpdateVisibleDetailedInfo(GtkWidget* table);
|
| +
|
| // Callbacks for user actions filtering the list.
|
| static void OnFilterEntryActivated(GtkEntry* entry, CookiesView* window);
|
| static void OnFilterEntryChanged(GtkEditable* editable, CookiesView* window);
|
| @@ -120,6 +133,12 @@
|
| GtkWidget* cookie_created_entry_;
|
| GtkWidget* cookie_expires_entry_;
|
|
|
| + // The local storage details widgets.
|
| + GtkWidget* local_storage_details_table_;
|
| + GtkWidget* local_storage_origin_entry_;
|
| + GtkWidget* local_storage_size_entry_;
|
| + GtkWidget* local_storage_last_modified_entry_;
|
| +
|
| // The profile.
|
| Profile* profile_;
|
|
|
|
|