| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 // Sets |ev_text| to the text that should be displayed in the EV label of | 203 // Sets |ev_text| to the text that should be displayed in the EV label of |
| 204 // the location bar and |ev_tooltip_text| to the tooltip for that label. | 204 // the location bar and |ev_tooltip_text| to the tooltip for that label. |
| 205 // Returns false and sets these strings to empty if the current page is either | 205 // Returns false and sets these strings to empty if the current page is either |
| 206 // not served over HTTPS or if HTTPS does not use an EV cert. | 206 // not served over HTTPS or if HTTPS does not use an EV cert. |
| 207 bool GetSSLEVText(std::wstring* ev_text, std::wstring* ev_tooltip_text) const; | 207 bool GetSSLEVText(std::wstring* ev_text, std::wstring* ev_tooltip_text) const; |
| 208 | 208 |
| 209 // Returns a human-readable description the tab's loading state. | 209 // Returns a human-readable description the tab's loading state. |
| 210 virtual std::wstring GetStatusText() const { return std::wstring(); } | 210 virtual std::wstring GetStatusText() const { return std::wstring(); } |
| 211 | 211 |
| 212 const std::wstring& encoding() { return encoding_name_; } | |
| 213 void set_encoding(const std::wstring& encoding_name) { | |
| 214 encoding_name_ = encoding_name; | |
| 215 } | |
| 216 | |
| 217 // Return whether this tab contents is loading a resource. | 212 // Return whether this tab contents is loading a resource. |
| 218 bool is_loading() const { return is_loading_; } | 213 bool is_loading() const { return is_loading_; } |
| 219 | 214 |
| 220 // Returns whether this tab contents is waiting for a first-response for the | 215 // Returns whether this tab contents is waiting for a first-response for the |
| 221 // main resource of the page. This controls whether the throbber state is | 216 // main resource of the page. This controls whether the throbber state is |
| 222 // "waiting" or "loading." | 217 // "waiting" or "loading." |
| 223 bool waiting_for_response() const { return waiting_for_response_; } | 218 bool waiting_for_response() const { return waiting_for_response_; } |
| 224 | 219 |
| 225 // Internal state ------------------------------------------------------------ | 220 // Internal state ------------------------------------------------------------ |
| 226 | 221 |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 bool shelf_visible_; | 506 bool shelf_visible_; |
| 512 | 507 |
| 513 // Indicates the largest PageID we've seen. This field is ignored if we are | 508 // Indicates the largest PageID we've seen. This field is ignored if we are |
| 514 // a WebContents, in which case the max page ID is stored separately with | 509 // a WebContents, in which case the max page ID is stored separately with |
| 515 // each SiteInstance. | 510 // each SiteInstance. |
| 516 int32 max_page_id_; | 511 int32 max_page_id_; |
| 517 | 512 |
| 518 // The id used in the ViewStorage to store the last focused view. | 513 // The id used in the ViewStorage to store the last focused view. |
| 519 int last_focused_view_storage_id_; | 514 int last_focused_view_storage_id_; |
| 520 | 515 |
| 521 std::wstring encoding_name_; | |
| 522 | |
| 523 // See capturing_contents() above. | 516 // See capturing_contents() above. |
| 524 bool capturing_contents_; | 517 bool capturing_contents_; |
| 525 | 518 |
| 526 DISALLOW_COPY_AND_ASSIGN(TabContents); | 519 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 527 }; | 520 }; |
| 528 | 521 |
| 529 #endif // CHROME_BROWSER_TAB_CONTENTS_H_ | 522 #endif // CHROME_BROWSER_TAB_CONTENTS_H_ |
| OLD | NEW |