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