summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/database_open_info_view.h
blob: 63d24e22c6bacd29eaea5bf4158305949c8a3211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_VIEWS_DATABASE_OPEN_INFO_VIEW_H_
#define CHROME_BROWSER_VIEWS_DATABASE_OPEN_INFO_VIEW_H_

#include "base/string16.h"
#include "chrome/browser/views/generic_info_view.h"

///////////////////////////////////////////////////////////////////////////////
// DatabaseOpenInfoView
//
//  Responsible for displaying a tabular grid of Database information when
//  prompting for permission to open a new database.
class DatabaseOpenInfoView : public GenericInfoView {
 public:
  DatabaseOpenInfoView();

  // Update the display from the specified Database data.
  void SetFields(const std::string& host,
                 const string16& database_name,
                 const string16& display_name,
                 unsigned long estimated_size);

 private:
  DISALLOW_COPY_AND_ASSIGN(DatabaseOpenInfoView);
};


#endif  // CHROME_BROWSER_VIEWS_DATABASE_OPEN_INFO_VIEW_H_