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

Side by Side Diff: base/threading/thread_restrictions.h

Issue 1878103002: Plumb a Browser->GPU surface destruction message for Android VDAs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a threadchecker Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BASE_THREADING_THREAD_RESTRICTIONS_H_ 5 #ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_
6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_ 6 #define BASE_THREADING_THREAD_RESTRICTIONS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 19 matching lines...) Expand all
30 class StatisticsProviderImpl; 30 class StatisticsProviderImpl;
31 } 31 }
32 } 32 }
33 namespace chrome_browser_net { 33 namespace chrome_browser_net {
34 class Predictor; 34 class Predictor;
35 } 35 }
36 namespace content { 36 namespace content {
37 class BrowserGpuChannelHostFactory; 37 class BrowserGpuChannelHostFactory;
38 class BrowserGpuMemoryBufferManager; 38 class BrowserGpuMemoryBufferManager;
39 class BrowserShutdownProfileDumper; 39 class BrowserShutdownProfileDumper;
40 class BrowserSurfaceViewManager;
40 class BrowserTestBase; 41 class BrowserTestBase;
41 class NestedMessagePumpAndroid; 42 class NestedMessagePumpAndroid;
42 class ScopedAllowWaitForAndroidLayoutTests; 43 class ScopedAllowWaitForAndroidLayoutTests;
43 class ScopedAllowWaitForDebugURL; 44 class ScopedAllowWaitForDebugURL;
44 class SoftwareOutputDeviceMus; 45 class SoftwareOutputDeviceMus;
45 class TextInputClientMac; 46 class TextInputClientMac;
46 class RasterWorkerPool; 47 class RasterWorkerPool;
47 } // namespace content 48 } // namespace content
48 namespace dbus { 49 namespace dbus {
49 class Bus; 50 class Bus;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 static bool SetSingletonAllowed(bool allowed) { return true; } 185 static bool SetSingletonAllowed(bool allowed) { return true; }
185 static void AssertSingletonAllowed() {} 186 static void AssertSingletonAllowed() {}
186 static void DisallowWaiting() {} 187 static void DisallowWaiting() {}
187 static void AssertWaitAllowed() {} 188 static void AssertWaitAllowed() {}
188 #endif 189 #endif
189 190
190 private: 191 private:
191 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 192 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
192 // BEGIN ALLOWED USAGE. 193 // BEGIN ALLOWED USAGE.
193 friend class content::BrowserShutdownProfileDumper; 194 friend class content::BrowserShutdownProfileDumper;
195 friend class content::BrowserSurfaceViewManager;
194 friend class content::BrowserTestBase; 196 friend class content::BrowserTestBase;
195 friend class content::NestedMessagePumpAndroid; 197 friend class content::NestedMessagePumpAndroid;
196 friend class content::ScopedAllowWaitForAndroidLayoutTests; 198 friend class content::ScopedAllowWaitForAndroidLayoutTests;
197 friend class content::ScopedAllowWaitForDebugURL; 199 friend class content::ScopedAllowWaitForDebugURL;
198 friend class ::HistogramSynchronizer; 200 friend class ::HistogramSynchronizer;
199 friend class ::ScopedAllowWaitForLegacyWebViewApi; 201 friend class ::ScopedAllowWaitForLegacyWebViewApi;
200 friend class cc::CompletionEvent; 202 friend class cc::CompletionEvent;
201 friend class cc::SingleThreadTaskGraphRunner; 203 friend class cc::SingleThreadTaskGraphRunner;
202 friend class content::RasterWorkerPool; 204 friend class content::RasterWorkerPool;
203 friend class remoting::AutoThread; 205 friend class remoting::AutoThread;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 261
260 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 262 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
261 }; 263 };
262 264
263 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 265 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
264 }; 266 };
265 267
266 } // namespace base 268 } // namespace base
267 269
268 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 270 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698