| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ |    5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ | 
|    6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ |    6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_H_ | 
|    7  |    7  | 
|    8 #include <memory> |    8 #include <memory> | 
|    9  |    9  | 
|   10 #include "base/compiler_specific.h" |   10 #include "base/compiler_specific.h" | 
|   11 #include "base/macros.h" |   11 #include "base/macros.h" | 
|   12 #include "base/memory/weak_ptr.h" |   12 #include "base/memory/weak_ptr.h" | 
|   13 #include "chrome/browser/ui/views/website_settings/chosen_object_row_observer.h" |   13 #include "chrome/browser/ui/views/website_settings/chosen_object_row_observer.h" | 
 |   14 #include "chrome/browser/ui/views/website_settings/permission_selector_row.h" | 
|   14 #include "chrome/browser/ui/views/website_settings/permission_selector_row_obser
     ver.h" |   15 #include "chrome/browser/ui/views/website_settings/permission_selector_row_obser
     ver.h" | 
|   15 #include "chrome/browser/ui/website_settings/website_settings_ui.h" |   16 #include "chrome/browser/ui/website_settings/website_settings_ui.h" | 
|   16 #include "content/public/browser/web_contents_observer.h" |   17 #include "content/public/browser/web_contents_observer.h" | 
|   17 #include "ui/views/bubble/bubble_dialog_delegate.h" |   18 #include "ui/views/bubble/bubble_dialog_delegate.h" | 
|   18 #include "ui/views/controls/button/button.h" |   19 #include "ui/views/controls/button/button.h" | 
|   19 #include "ui/views/controls/link_listener.h" |   20 #include "ui/views/controls/link_listener.h" | 
|   20 #include "ui/views/controls/separator.h" |   21 #include "ui/views/controls/separator.h" | 
|   21 #include "ui/views/controls/styled_label_listener.h" |   22 #include "ui/views/controls/styled_label_listener.h" | 
|   22  |   23  | 
|   23 class GURL; |   24 class GURL; | 
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  165   // settings view. |  166   // settings view. | 
|  166   views::View* cookies_view_; |  167   views::View* cookies_view_; | 
|  167   // The link that opens the "Cookies" dialog. |  168   // The link that opens the "Cookies" dialog. | 
|  168   views::Link* cookie_dialog_link_; |  169   views::Link* cookie_dialog_link_; | 
|  169   // The view that contains the "Permissions" table of the site settings view. |  170   // The view that contains the "Permissions" table of the site settings view. | 
|  170   views::View* permissions_view_; |  171   views::View* permissions_view_; | 
|  171  |  172  | 
|  172   // The certificate provided by the site, if one exists. |  173   // The certificate provided by the site, if one exists. | 
|  173   scoped_refptr<net::X509Certificate> certificate_; |  174   scoped_refptr<net::X509Certificate> certificate_; | 
|  174  |  175  | 
 |  176   // These rows bundle together all the |View|s involved in a single row of the | 
 |  177   // permissions section, and keep those views updated when the underlying | 
 |  178   // |Permission| changes. | 
 |  179   std::vector<std::unique_ptr<PermissionSelectorRow>> selector_rows_; | 
 |  180  | 
|  175   base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; |  181   base::WeakPtrFactory<WebsiteSettingsPopupView> weak_factory_; | 
|  176  |  182  | 
|  177   DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); |  183   DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupView); | 
|  178 }; |  184 }; | 
|  179  |  185  | 
|  180 #endif  // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
     H_ |  186 #endif  // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_WEBSITE_SETTINGS_POPUP_VIEW_
     H_ | 
| OLD | NEW |