1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/sessions/tab_loader_delegate.h"
7 #if !defined(OS_CHROMEOS)
11 // The timeout time after which the next tab gets loaded if the previous tab did
12 // not finish loading yet.
13 static const int kInitialDelayTimerMS
= 100;
15 class TabLoaderDelegateImpl
: public TabLoaderDelegate
{
17 TabLoaderDelegateImpl() {}
18 ~TabLoaderDelegateImpl() override
{}
21 base::TimeDelta
GetTimeoutBeforeLoadingNextTab() const override
{
22 return base::TimeDelta::FromMilliseconds(kInitialDelayTimerMS
);
26 DISALLOW_COPY_AND_ASSIGN(TabLoaderDelegateImpl
);
31 scoped_ptr
<TabLoaderDelegate
> TabLoaderDelegate::Create(
32 TabLoaderCallback
* callback
) {
33 return scoped_ptr
<TabLoaderDelegate
>(new TabLoaderDelegateImpl());
36 #endif // !defined(OS_CHROMEOS)