• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_VIEWS_DATABASE_OPEN_INFO_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_DATABASE_OPEN_INFO_VIEW_H_
7 #pragma once
8 
9 #include "base/string16.h"
10 #include "chrome/browser/ui/views/generic_info_view.h"
11 
12 ///////////////////////////////////////////////////////////////////////////////
13 // DatabaseOpenInfoView
14 //
15 //  Responsible for displaying a tabular grid of Database information when
16 //  prompting for permission to open a new database.
17 class DatabaseOpenInfoView : public GenericInfoView {
18  public:
19   DatabaseOpenInfoView();
20 
21   // Update the display from the specified Database data.
22   void SetFields(const std::string& host,
23                  const string16& database_name,
24                  const string16& display_name,
25                  unsigned long estimated_size);
26 
27  private:
28   DISALLOW_COPY_AND_ASSIGN(DatabaseOpenInfoView);
29 };
30 
31 
32 #endif  // CHROME_BROWSER_UI_VIEWS_DATABASE_OPEN_INFO_VIEW_H_
33 
34