OLD | NEW |
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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int level, const std::string& header, const std::string& message) = 0; | 72 int level, const std::string& header, const std::string& message) = 0; |
73 | 73 |
74 // Returns a new copy of the ListValue. Caller is responsible to release | 74 // Returns a new copy of the ListValue. Caller is responsible to release |
75 // the returned value. | 75 // the returned value. |
76 virtual base::ListValue* GetLogMessages() const = 0; | 76 virtual base::ListValue* GetLogMessages() const = 0; |
77 | 77 |
78 // Registers/unregister |observer|. | 78 // Registers/unregister |observer|. |
79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; | 79 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; |
80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; | 80 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; |
81 | 81 |
| 82 // Notifies the gpu process about the number of browser windows, so |
| 83 // they can be used to determine managed memory allocation. |
| 84 virtual void SetWindowCount(uint32 count) = 0; |
| 85 virtual uint32 GetWindowCount() const = 0; |
| 86 |
82 protected: | 87 protected: |
83 virtual ~GpuDataManager() {} | 88 virtual ~GpuDataManager() {} |
84 }; | 89 }; |
85 | 90 |
86 }; // namespace content | 91 }; // namespace content |
87 | 92 |
88 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ | 93 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ |
OLD | NEW |