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

Unified Diff: chrome/browser/views/local_storage_set_item_info_view.h

Issue 597061: Make the setItem CONTENT_SETTING_ASK dialog more useful by showing the actual... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 10 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/views/local_storage_set_item_info_view.h
===================================================================
--- chrome/browser/views/local_storage_set_item_info_view.h (revision 38896)
+++ chrome/browser/views/local_storage_set_item_info_view.h (working copy)
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_VIEWS_LOCAL_STORAGE_INFO_VIEW_H_
-#define CHROME_BROWSER_VIEWS_LOCAL_STORAGE_INFO_VIEW_H_
+#ifndef CHROME_BROWSER_VIEWS_LOCAL_STORAGE_SET_ITEM_INFO_VIEW_H_
+#define CHROME_BROWSER_VIEWS_LOCAL_STORAGE_SET_ITEM_INFO_VIEW_H_
#include <string>
#include <vector>
+#include "base/string16.h"
#include "views/view.h"
-#include "chrome/browser/browsing_data_local_storage_helper.h"
namespace views {
class Label;
@@ -17,20 +17,21 @@
}
///////////////////////////////////////////////////////////////////////////////
-// LocalStorageInfoView
+// LocalStorageSetItemInfoView
//
-// Responsible for displaying a tabular grid of Local Storage information.
-class LocalStorageInfoView : public views::View {
+// Responsible for displaying a tabular grid of Local Storage information when
+// prompting for permission to set an item.
+class LocalStorageSetItemInfoView : public views::View {
public:
- LocalStorageInfoView();
- virtual ~LocalStorageInfoView();
+ LocalStorageSetItemInfoView();
+ virtual ~LocalStorageSetItemInfoView();
// Update the display from the specified Local Storage info.
- void SetLocalStorageInfo(
- const BrowsingDataLocalStorageHelper::LocalStorageInfo&
- local_storage_info);
+ void SetFields(const std::string& host,
+ const string16& key,
+ const string16& value);
- // Clears the cookie display to indicate that no or multiple local storages
+ // Clears the display to indicate that no or multiple local storages
// are selected.
void ClearLocalStorageDisplay();
@@ -47,13 +48,13 @@
void Init();
// Individual property labels
- views::Textfield* origin_value_field_;
- views::Textfield* size_value_field_;
- views::Textfield* last_modified_value_field_;
+ views::Textfield* host_value_field_;
+ views::Textfield* key_value_field_;
+ views::Textfield* value_value_field_;
- DISALLOW_COPY_AND_ASSIGN(LocalStorageInfoView);
+ DISALLOW_COPY_AND_ASSIGN(LocalStorageSetItemInfoView);
};
-#endif // CHROME_BROWSER_VIEWS_LOCAL_STORAGE_INFO_VIEW_H_
+#endif // CHROME_BROWSER_VIEWS_LOCAL_STORAGE_SET_ITEM_INFO_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698