| OLD | NEW |
| 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_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 <deque> | 10 #include <deque> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 bool FavIconIsValid() const; | 241 bool FavIconIsValid() const; |
| 242 | 242 |
| 243 // Returns whether the favicon should be displayed. If this returns false, no | 243 // Returns whether the favicon should be displayed. If this returns false, no |
| 244 // space is provided for the favicon, and the favicon is never displayed. | 244 // space is provided for the favicon, and the favicon is never displayed. |
| 245 virtual bool ShouldDisplayFavIcon(); | 245 virtual bool ShouldDisplayFavIcon(); |
| 246 | 246 |
| 247 // Returns whether a particular kind of content has been blocked for this | 247 // Returns whether a particular kind of content has been blocked for this |
| 248 // page. | 248 // page. |
| 249 bool IsContentBlocked(ContentSettingsType content_type) const; | 249 bool IsContentBlocked(ContentSettingsType content_type) const; |
| 250 | 250 |
| 251 // Returns the map of settings per origin that has used the geolocation API on | 251 // Returns the map of settings per frame that has used the geolocation API on |
| 252 // this page. | 252 // this page. Note this is a full URL, not redacted to origin or otherwise. |
| 253 // Also note this reflects the state as currently using on this page, the |
| 254 // state in the persisted prefs map may have since changed. |
| 253 typedef std::map<GURL, ContentSetting> GeolocationContentSettings; | 255 typedef std::map<GURL, ContentSetting> GeolocationContentSettings; |
| 254 const GeolocationContentSettings& geolocation_content_settings() const { | 256 const GeolocationContentSettings& geolocation_content_settings() const { |
| 255 return geolocation_content_settings_; | 257 return geolocation_content_settings_; |
| 256 } | 258 } |
| 257 | 259 |
| 258 // Returns a human-readable description the tab's loading state. | 260 // Returns a human-readable description the tab's loading state. |
| 259 virtual std::wstring GetStatusText() const; | 261 virtual std::wstring GetStatusText() const; |
| 260 | 262 |
| 261 // Return whether this tab contents is loading a resource. | 263 // Return whether this tab contents is loading a resource. |
| 262 bool is_loading() const { return is_loading_; } | 264 bool is_loading() const { return is_loading_; } |
| (...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 | 1220 |
| 1219 // Maps each frame on this page to its geolocation content settings. | 1221 // Maps each frame on this page to its geolocation content settings. |
| 1220 GeolocationContentSettings geolocation_content_settings_; | 1222 GeolocationContentSettings geolocation_content_settings_; |
| 1221 | 1223 |
| 1222 // --------------------------------------------------------------------------- | 1224 // --------------------------------------------------------------------------- |
| 1223 | 1225 |
| 1224 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1226 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1225 }; | 1227 }; |
| 1226 | 1228 |
| 1227 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1229 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |