TrackingResourceDispatcherHostDelegate() : throttle_created_(false) {
}
- virtual void RequestBeginning(
- net::URLRequest* request,
- ResourceContext* resource_context,
- AppCacheService* appcache_service,
- ResourceType resource_type,
- ScopedVector<ResourceThrottle>* throttles) OVERRIDE {
+ void RequestBeginning(net::URLRequest* request,
+ ResourceContext* resource_context,
+ AppCacheService* appcache_service,
+ ResourceType resource_type,
+ ScopedVector<ResourceThrottle>* throttles) override {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
ShellResourceDispatcherHostDelegate::RequestBeginning(
request, resource_context, appcache_service, resource_type, throttles);
: request_(request), tracker_(tracker) {
}
- virtual ~TrackingThrottle() {
+ ~TrackingThrottle() override {
// If the request is deleted without being cancelled, its status will
// indicate it succeeded, so have to check if the request is still pending
// as well.
}
// ResourceThrottle implementation:
- virtual const char* GetNameForLogging() const OVERRIDE {
+ const char* GetNameForLogging() const override {
return "TrackingThrottle";
}
public:
NoTransferRequestDelegate() {}
- virtual WebContents* OpenURLFromTab(WebContents* source,
- const OpenURLParams& params) OVERRIDE {
+ WebContents* OpenURLFromTab(WebContents* source,
+ const OpenURLParams& params) override {
bool is_transfer =
(params.transferred_global_request_id != GlobalRequestID());
if (is_transfer)
}
// ContentBrowserTest implementation:
- virtual void SetUpOnMainThread() OVERRIDE {
+ void SetUpOnMainThread() override {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(
base::Unretained(this)));
}
- virtual void TearDownOnMainThread() OVERRIDE {
+ void TearDownOnMainThread() override {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(
load_observer.Wait();
}
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
+ void SetUpCommandLine(CommandLine* command_line) override {
// Use --site-per-process to force process swaps for cross-site transfers.
command_line->AppendSwitch(switches::kSitePerProcess);
}