Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Side by Side Diff: content/public/browser/gpu_data_manager_observer.h

Issue 12319119: Fix layering violation in content\browser\renderer_host. That directory shouldn't be including web_… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/common/gpu_memory_stats.h" 9 #include "content/public/common/gpu_memory_stats.h"
10 #include "content/public/common/three_d_api_types.h"
11
12 class GURL;
10 13
11 namespace content { 14 namespace content {
12 15
13 // Observers can register themselves via GpuDataManager::AddObserver, and 16 // Observers can register themselves via GpuDataManager::AddObserver, and
14 // can un-register with GpuDataManager::RemoveObserver. 17 // can un-register with GpuDataManager::RemoveObserver.
15 class GpuDataManagerObserver { 18 class GpuDataManagerObserver {
16 public: 19 public:
17 // Called for any observers whenever there is a GPU info update. 20 // Called for any observers whenever there is a GPU info update.
18 virtual void OnGpuInfoUpdate() = 0; 21 virtual void OnGpuInfoUpdate() {}
19 22
20 // Called for any observers whenever there is a GPU video memory update. 23 // Called for any observers whenever there is a GPU video memory update.
21 virtual void OnVideoMemoryUsageStatsUpdate( 24 virtual void OnVideoMemoryUsageStatsUpdate(
22 const GPUVideoMemoryUsageStats& video_memory_usage_stats) = 0; 25 const GPUVideoMemoryUsageStats& video_memory_usage_stats) {}
26
27 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just blocked on the
28 // given page, specifically because the GPU was reset recently.
29 virtual void DidBlock3DAPIs(const GURL& url,
30 int render_process_id,
31 int render_view_id,
32 ThreeDAPIType requester) {}
23 33
24 protected: 34 protected:
25 virtual ~GpuDataManagerObserver() {} 35 virtual ~GpuDataManagerObserver() {}
26 }; 36 };
27 37
28 }; // namespace content 38 }; // namespace content
29 39
30 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/gpu_data_manager.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698