OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/views/signed_certificate_timestamps_views.h" | 5 #include "chrome/browser/ui/views/signed_certificate_timestamps_views.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 } // namespace chrome | 53 } // namespace chrome |
54 | 54 |
55 class SCTListModel : public ui::ComboboxModel { | 55 class SCTListModel : public ui::ComboboxModel { |
56 public: | 56 public: |
57 explicit SCTListModel( | 57 explicit SCTListModel( |
58 const net::SignedCertificateTimestampAndStatusList& sct_list); | 58 const net::SignedCertificateTimestampAndStatusList& sct_list); |
59 virtual ~SCTListModel(); | 59 virtual ~SCTListModel(); |
60 | 60 |
61 // Overridden from ui::ComboboxModel: | 61 // Overridden from ui::ComboboxModel: |
62 virtual int GetItemCount() const OVERRIDE; | 62 virtual int GetItemCount() const override; |
63 virtual base::string16 GetItemAt(int index) OVERRIDE; | 63 virtual base::string16 GetItemAt(int index) override; |
64 | 64 |
65 private: | 65 private: |
66 net::SignedCertificateTimestampAndStatusList sct_list_; | 66 net::SignedCertificateTimestampAndStatusList sct_list_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(SCTListModel); | 68 DISALLOW_COPY_AND_ASSIGN(SCTListModel); |
69 }; | 69 }; |
70 | 70 |
71 SCTListModel::SCTListModel( | 71 SCTListModel::SCTListModel( |
72 const net::SignedCertificateTimestampAndStatusList& sct_list) | 72 const net::SignedCertificateTimestampAndStatusList& sct_list) |
73 : sct_list_(sct_list) {} | 73 : sct_list_(sct_list) {} |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 sct_info_view_->SetSignedCertificateTimestamp( | 163 sct_info_view_->SetSignedCertificateTimestamp( |
164 *(sct_list_[sct_index].sct.get()), sct_list_[sct_index].status); | 164 *(sct_list_[sct_index].sct.get()), sct_list_[sct_index].status); |
165 } | 165 } |
166 | 166 |
167 void SignedCertificateTimestampsViews::Observe( | 167 void SignedCertificateTimestampsViews::Observe( |
168 int type, | 168 int type, |
169 const content::NotificationSource& source, | 169 const content::NotificationSource& source, |
170 const content::NotificationDetails& details) { | 170 const content::NotificationDetails& details) { |
171 GetWidget()->Close(); | 171 GetWidget()->Close(); |
172 } | 172 } |
OLD | NEW |