Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/browser/page_info_model.h

Issue 3367007: Page info model now shows red skull and crossbones on SECURITY_STYLE_AUTHENTI... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/gtk/page_info_bubble_gtk.cc ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/page_info_bubble_gtk.cc ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698