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

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

Issue 9537015: Adds "Certificate Information" label for page_info_model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Returns the native image type for an icon with the given id. 89 // Returns the native image type for an icon with the given id.
90 gfx::Image* GetIconImage(SectionStateIcon icon_id); 90 gfx::Image* GetIconImage(SectionStateIcon icon_id);
91 91
92 // Callback from history service with number of visits to url. 92 // Callback from history service with number of visits to url.
93 void OnGotVisitCountToHost(HistoryService::Handle handle, 93 void OnGotVisitCountToHost(HistoryService::Handle handle,
94 bool found_visits, 94 bool found_visits,
95 int count, 95 int count,
96 base::Time first_visit); 96 base::Time first_visit);
97 97
98 // Returns the label for the "Certificate Information", if needed.
99 string16 GetCertificateLabel() const;
100
98 protected: 101 protected:
99 // Testing constructor. DO NOT USE. 102 // Testing constructor. DO NOT USE.
100 PageInfoModel(); 103 PageInfoModel();
101 104
102 // Shared initialization for default and testing constructor. 105 // Shared initialization for default and testing constructor.
103 void Init(); 106 void Init();
104 107
105 PageInfoModelObserver* observer_; 108 PageInfoModelObserver* observer_;
106 109
107 std::vector<SectionInfo> sections_; 110 std::vector<SectionInfo> sections_;
108 111
109 // All possible icons that go next to the text descriptions to indicate state. 112 // All possible icons that go next to the text descriptions to indicate state.
110 std::vector<gfx::Image*> icons_; 113 std::vector<gfx::Image*> icons_;
111 114
112 // Used to request number of visits. 115 // Used to request number of visits.
113 CancelableRequestConsumer request_consumer_; 116 CancelableRequestConsumer request_consumer_;
114 117
118 // Label for "Certificate Information", if needed.
119 string16 certificate_label_;
120
115 private: 121 private:
116 DISALLOW_COPY_AND_ASSIGN(PageInfoModel); 122 DISALLOW_COPY_AND_ASSIGN(PageInfoModel);
117 }; 123 };
118 124
119 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_ 125 #endif // CHROME_BROWSER_PAGE_INFO_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/page_info_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698