#include "chrome/browser/ui/webui/internals/sessions/session_service_internals_handler.h"
#include <string>
#include "base/i18n/time_formatting.h"
#include "base/memory/ref_counted_memory.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_service_log.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_ui_data_source.h"
namespace {
std::string EventTimeToString(const SessionServiceEvent& event) { … }
std::string EventToString(const SessionServiceEvent& event) { … }
std::string GetEventLogAsString(Profile* profile) { … }
}
bool SessionServiceInternalsHandler::ShouldHandleWebUIRequestCallback(
const std::string& path) { … }
void SessionServiceInternalsHandler::HandleWebUIRequestCallback(
Profile* profile,
const std::string& path,
content::WebUIDataSource::GotDataCallback callback) { … }