OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void DisableDomainBlockingFor3DAPIsForTesting(); | 158 void DisableDomainBlockingFor3DAPIsForTesting(); |
159 | 159 |
160 void Notify3DAPIBlocked(const GURL& url, | 160 void Notify3DAPIBlocked(const GURL& url, |
161 int render_process_id, | 161 int render_process_id, |
162 int render_view_id, | 162 int render_view_id, |
163 ThreeDAPIType requester); | 163 ThreeDAPIType requester); |
164 | 164 |
165 // Get number of features being blacklisted. | 165 // Get number of features being blacklisted. |
166 size_t GetBlacklistedFeatureCount() const; | 166 size_t GetBlacklistedFeatureCount() const; |
167 | 167 |
| 168 void SetDisplayCount(unsigned int display_count); |
| 169 unsigned int GetDisplayCount() const; |
| 170 |
168 private: | 171 private: |
169 friend class GpuDataManagerImplPrivate; | 172 friend class GpuDataManagerImplPrivate; |
170 friend class GpuDataManagerImplPrivateTest; | 173 friend class GpuDataManagerImplPrivateTest; |
171 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; | 174 friend struct DefaultSingletonTraits<GpuDataManagerImpl>; |
172 | 175 |
173 // It's similar to AutoUnlock, but we want to make it a no-op | 176 // It's similar to AutoUnlock, but we want to make it a no-op |
174 // if the owner GpuDataManagerImpl is null. | 177 // if the owner GpuDataManagerImpl is null. |
175 // This should only be used by GpuDataManagerImplPrivate where | 178 // This should only be used by GpuDataManagerImplPrivate where |
176 // callbacks are called, during which re-entering | 179 // callbacks are called, during which re-entering |
177 // GpuDataManagerImpl is possible. | 180 // GpuDataManagerImpl is possible. |
(...skipping 21 matching lines...) Expand all Loading... |
199 | 202 |
200 mutable base::Lock lock_; | 203 mutable base::Lock lock_; |
201 scoped_ptr<GpuDataManagerImplPrivate> private_; | 204 scoped_ptr<GpuDataManagerImplPrivate> private_; |
202 | 205 |
203 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); | 206 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); |
204 }; | 207 }; |
205 | 208 |
206 } // namespace content | 209 } // namespace content |
207 | 210 |
208 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ | 211 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ |
OLD | NEW |