#ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
#define CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
#include "base/process/kill.h"
#include "base/strings/string16.h"
#include "chrome/browser/ui/tabs/tab_utils.h"
#include "chrome/browser/ui/views/chrome_views_export.h"
#include "ui/gfx/image/image_skia.h"
#include "url/gurl.h"
struct CHROME_VIEWS_EXPORT TabRendererData {
enum NetworkState {
NETWORK_STATE_NONE,
NETWORK_STATE_WAITING,
NETWORK_STATE_LOADING,
};
TabRendererData();
~TabRendererData();
bool IsCrashed() const {
return (crashed_status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED ||
crashed_status == base::TERMINATION_STATUS_PROCESS_CRASHED ||
crashed_status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION);
}
bool Equals(const TabRendererData& data);
gfx::ImageSkia favicon;
NetworkState network_state;
base::string16 title;
GURL url;
bool loading;
base::TerminationStatus crashed_status;
bool incognito;
bool show_icon;
bool mini;
bool blocked;
bool app;
TabMediaState media_state;
};
#endif