#include "chrome/browser/ui/search/new_tab_page_navigation_throttle.h"
#include <utility>
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/browser/web_contents.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
#include "url/gurl.h"
NewTabPageNavigationThrottle::NewTabPageNavigationThrottle(
content::NavigationHandle* navigation_handle)
: … { … }
NewTabPageNavigationThrottle::~NewTabPageNavigationThrottle() = default;
const char* NewTabPageNavigationThrottle::GetNameForLogging() { … }
std::unique_ptr<content::NavigationThrottle>
NewTabPageNavigationThrottle::MaybeCreateThrottleFor(
content::NavigationHandle* handle) { … }
content::NavigationThrottle::ThrottleCheckResult
NewTabPageNavigationThrottle::WillProcessResponse() { … }
content::NavigationThrottle::ThrottleCheckResult
NewTabPageNavigationThrottle::WillFailRequest() { … }
content::NavigationThrottle::ThrottleCheckResult
NewTabPageNavigationThrottle::OpenLocalNewTabPage() { … }