ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chrome / browser / sessions / tab_loader_delegate.cc
blob8e926d4217deb8e26395bdbe6b5e45d70d1a6014
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)
9 namespace {
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 {
16 public:
17 TabLoaderDelegateImpl() {}
18 ~TabLoaderDelegateImpl() override {}
20 // TabLoaderDelegate:
21 base::TimeDelta GetTimeoutBeforeLoadingNextTab() const override {
22 return base::TimeDelta::FromMilliseconds(kInitialDelayTimerMS);
25 private:
26 DISALLOW_COPY_AND_ASSIGN(TabLoaderDelegateImpl);
28 } // namespace
30 // static
31 scoped_ptr<TabLoaderDelegate> TabLoaderDelegate::Create(
32 TabLoaderCallback* callback) {
33 return scoped_ptr<TabLoaderDelegate>(new TabLoaderDelegateImpl());
36 #endif // !defined(OS_CHROMEOS)