| 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_
|
|
|
|
|