| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |