Add UMA stats for ExtensionCache
[chromium-blink-merge.git] / ash / gpu_support.h
blob089f121e2f10ef7d069ccf74309f9488b05be9f0
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 #ifndef ASH_GPU_SUPPORT_H_
6 #define ASH_GPU_SUPPORT_H_
8 #include <list>
10 #include "base/callback_forward.h"
11 #include "base/process/process.h"
13 namespace ash {
15 // An interface to allow use of content::GpuDataManager to be injected in
16 // configurations that permit a dependency on content.
17 class GPUSupport {
18 public:
19 typedef base::Callback<void(const std::list<base::ProcessHandle>&)>
20 GetGpuProcessHandlesCallback;
22 virtual ~GPUSupport() {}
24 virtual bool IsPanelFittingDisabled() const = 0;
26 virtual void DisableGpuWatchdog() = 0;
28 virtual void GetGpuProcessHandles(
29 const GetGpuProcessHandlesCallback& callback) const = 0;
32 } // namespace ash
34 #endif // ASH_GPU_SUPPORT_H_