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

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

Issue 118145: Remove the obsolete TabContents::GetSecurityStyle and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 years, 6 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/tab_contents/tab_contents.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // Returns the favicon for this tab, or an isNull() bitmap if the tab does not 201 // Returns the favicon for this tab, or an isNull() bitmap if the tab does not
202 // have a favicon. The default implementation uses the current navigation 202 // have a favicon. The default implementation uses the current navigation
203 // entry. 203 // entry.
204 SkBitmap GetFavIcon() const; 204 SkBitmap GetFavIcon() const;
205 205
206 // Returns whether the favicon should be displayed. If this returns false, no 206 // Returns whether the favicon should be displayed. If this returns false, no
207 // space is provided for the favicon, and the favicon is never displayed. 207 // space is provided for the favicon, and the favicon is never displayed.
208 virtual bool ShouldDisplayFavIcon(); 208 virtual bool ShouldDisplayFavIcon();
209 209
210 // SSL related states.
211 SecurityStyle GetSecurityStyle() const;
212
213 // Sets |ev_text| to the text that should be displayed in the EV label of
214 // the location bar and |ev_tooltip_text| to the tooltip for that label.
215 // Returns false and sets these strings to empty if the current page is either
216 // not served over HTTPS or if HTTPS does not use an EV cert.
217 bool GetSSLEVText(std::wstring* ev_text, std::wstring* ev_tooltip_text) const;
218
219 // Returns a human-readable description the tab's loading state. 210 // Returns a human-readable description the tab's loading state.
220 virtual std::wstring GetStatusText() const; 211 virtual std::wstring GetStatusText() const;
221 212
222 // Return whether this tab contents is loading a resource. 213 // Return whether this tab contents is loading a resource.
223 bool is_loading() const { return is_loading_; } 214 bool is_loading() const { return is_loading_; }
224 215
225 // Returns whether this tab contents is waiting for a first-response for the 216 // Returns whether this tab contents is waiting for a first-response for the
226 // main resource of the page. This controls whether the throbber state is 217 // main resource of the page. This controls whether the throbber state is
227 // "waiting" or "loading." 218 // "waiting" or "loading."
228 bool waiting_for_response() const { return waiting_for_response_; } 219 bool waiting_for_response() const { return waiting_for_response_; }
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 // True if the user has decided to block future javascript messages. This is 1051 // True if the user has decided to block future javascript messages. This is
1061 // reset on navigations to false on navigations. 1052 // reset on navigations to false on navigations.
1062 bool suppress_javascript_messages_; 1053 bool suppress_javascript_messages_;
1063 1054
1064 // --------------------------------------------------------------------------- 1055 // ---------------------------------------------------------------------------
1065 1056
1066 DISALLOW_COPY_AND_ASSIGN(TabContents); 1057 DISALLOW_COPY_AND_ASSIGN(TabContents);
1067 }; 1058 };
1068 1059
1069 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1060 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698