| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PAGE_INFO_MODEL_H_ | 5 #ifndef CHROME_BROWSER_PAGE_INFO_MODEL_H_ |
| 6 #define CHROME_BROWSER_PAGE_INFO_MODEL_H_ | 6 #define CHROME_BROWSER_PAGE_INFO_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 enum SectionInfoType { | 32 enum SectionInfoType { |
| 33 SECTION_INFO_IDENTITY = 0, | 33 SECTION_INFO_IDENTITY = 0, |
| 34 SECTION_INFO_CONNECTION, | 34 SECTION_INFO_CONNECTION, |
| 35 SECTION_INFO_FIRST_VISIT, | 35 SECTION_INFO_FIRST_VISIT, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 enum SectionInfoState { | 38 enum SectionInfoState { |
| 39 SECTION_STATE_OK = 0, | 39 SECTION_STATE_OK = 0, |
| 40 // If state is OK but contains mixed content. | 40 // For example, if state is OK but contains mixed content. |
| 41 SECTION_STATE_WARNING, | 41 SECTION_STATE_WARNING_MINOR, |
| 42 // For example, if content was served over HTTP. |
| 43 SECTION_STATE_WARNING_MAJOR, |
| 42 // For example, unverified identity over HTTPS. | 44 // For example, unverified identity over HTTPS. |
| 43 SECTION_STATE_ERROR, | 45 SECTION_STATE_ERROR, |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 struct SectionInfo { | 48 struct SectionInfo { |
| 47 SectionInfo(SectionInfoState state, | 49 SectionInfo(SectionInfoState state, |
| 48 const string16& title, | 50 const string16& title, |
| 49 const string16& headline, | 51 const string16& headline, |
| 50 const string16& description, | 52 const string16& description, |
| 51 SectionInfoType type) | 53 SectionInfoType type) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 std::vector<SectionInfo> sections_; | 102 std::vector<SectionInfo> sections_; |
| 101 | 103 |
| 102 // Used to request number of visits. | 104 // Used to request number of visits. |
| 103 CancelableRequestConsumer request_consumer_; | 105 CancelableRequestConsumer request_consumer_; |
| 104 | 106 |
| 105 private: | 107 private: |
| 106 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); | 108 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ | 111 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ |
| OLD | NEW |