OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 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_GTK_OPTIONS_ADVANCED_CONTENTS_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_OPTIONS_ADVANCED_CONTENTS_GTK_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <gtk/gtk.h> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "base/scoped_ptr.h" |
| 13 |
| 14 class Profile; |
| 15 class DownloadSection; |
| 16 class NetworkSection; |
| 17 class PrivacySection; |
| 18 class SecuritySection; |
| 19 class TranslateSection; |
| 20 class WebContentSection; |
| 21 |
| 22 class AdvancedContentsGtk { |
| 23 public: |
| 24 explicit AdvancedContentsGtk(Profile* profile); |
| 25 virtual ~AdvancedContentsGtk(); |
| 26 |
| 27 GtkWidget* get_page_widget() const { |
| 28 return page_; |
| 29 } |
| 30 |
| 31 private: |
| 32 void Init(); |
| 33 |
| 34 // The profile. |
| 35 Profile* profile_; |
| 36 |
| 37 // The sections of the page. |
| 38 scoped_ptr<DownloadSection> download_section_; |
| 39 scoped_ptr<NetworkSection> network_section_; |
| 40 scoped_ptr<TranslateSection> translate_section_; |
| 41 scoped_ptr<PrivacySection> privacy_section_; |
| 42 scoped_ptr<SecuritySection> security_section_; |
| 43 scoped_ptr<WebContentSection> web_content_section_; |
| 44 |
| 45 // The widget containing the advanced options sections. |
| 46 GtkWidget* page_; |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(AdvancedContentsGtk); |
| 49 }; |
| 50 |
| 51 #endif // CHROME_BROWSER_UI_GTK_OPTIONS_ADVANCED_CONTENTS_GTK_H_ |
OLD | NEW |