Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / common / gpu / gpu_watchdog.h
blob3f425133467f0128a04e66c681395ae57c85362c
1 // Copyright (c) 2012 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 #ifndef CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
6 #define CONTENT_COMMON_GPU_GPU_WATCHDOG_H_
8 namespace content {
10 // Interface for objects that monitor the a GPUProcessor's progress. The
11 // GPUProcessor will regularly invoke CheckArmed.
12 class GpuWatchdog {
13 public:
14 virtual void CheckArmed() = 0;
16 protected:
17 GpuWatchdog() {}
18 virtual ~GpuWatchdog() {};
20 private:
21 DISALLOW_COPY_AND_ASSIGN(GpuWatchdog);
24 } // namespace content
26 #endif // CONTENT_COMMON_GPU_GPU_WATCHDOG_H_