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

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

Issue 11343017: Move remaining files in content\browser\renderer_host to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/android/browser_jni_registrar.cc » ('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/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 // See comment at top of thread_checker.h 11 // See comment at top of thread_checker.h
12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) 12 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON))
13 #define ENABLE_THREAD_RESTRICTIONS 1 13 #define ENABLE_THREAD_RESTRICTIONS 1
14 #else 14 #else
15 #define ENABLE_THREAD_RESTRICTIONS 0 15 #define ENABLE_THREAD_RESTRICTIONS 0
16 #endif 16 #endif
17 17
18 class AcceleratedPresenter; 18 class AcceleratedPresenter;
19 class BrowserProcessImpl; 19 class BrowserProcessImpl;
20 class HistogramSynchronizer; 20 class HistogramSynchronizer;
21 class MetricsService; 21 class MetricsService;
22 class NativeBackendKWallet; 22 class NativeBackendKWallet;
23 class ScopedAllowWaitForLegacyWebViewApi; 23 class ScopedAllowWaitForLegacyWebViewApi;
24 class TestingAutomationProvider; 24 class TestingAutomationProvider;
25 class TextInputClientMac;
26 25
27 namespace browser_sync { 26 namespace browser_sync {
28 class NonFrontendDataTypeController; 27 class NonFrontendDataTypeController;
29 class UIModelWorker; 28 class UIModelWorker;
30 } 29 }
31 namespace cc { 30 namespace cc {
32 class CompletionEvent; 31 class CompletionEvent;
33 } 32 }
34 namespace chromeos { 33 namespace chromeos {
35 class AudioMixerAlsa; 34 class AudioMixerAlsa;
36 class BlockingMethodCaller; 35 class BlockingMethodCaller;
37 namespace system { 36 namespace system {
38 class StatisticsProviderImpl; 37 class StatisticsProviderImpl;
39 } 38 }
40 } 39 }
41 namespace chrome_browser_net { 40 namespace chrome_browser_net {
42 class Predictor; 41 class Predictor;
43 } 42 }
44 namespace content { 43 namespace content {
45 class BrowserGpuChannelHostFactory; 44 class BrowserGpuChannelHostFactory;
46 class GLHelper; 45 class GLHelper;
47 class GpuChannelHost; 46 class GpuChannelHost;
48 class RenderWidgetHelper; 47 class RenderWidgetHelper;
48 class TextInputClientMac;
49 } 49 }
50 namespace dbus { 50 namespace dbus {
51 class Bus; 51 class Bus;
52 } 52 }
53 namespace disk_cache { 53 namespace disk_cache {
54 class BackendImpl; 54 class BackendImpl;
55 class InFlightIO; 55 class InFlightIO;
56 } 56 }
57 namespace media { 57 namespace media {
58 class AudioOutputController; 58 class AudioOutputController;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206 183 friend class ::chromeos::AudioMixerAlsa; // http://crbug.com/125206
184 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360 184 friend class ::chromeos::BlockingMethodCaller; // http://crbug.com/125360
185 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385 185 friend class ::chromeos::system::StatisticsProviderImpl; // http://crbug.com/ 125385
186 friend class browser_sync::NonFrontendDataTypeController; // http://crbug.com /19757 186 friend class browser_sync::NonFrontendDataTypeController; // http://crbug.com /19757
187 friend class browser_sync::UIModelWorker; // http://crbug.com/19757 187 friend class browser_sync::UIModelWorker; // http://crbug.com/19757
188 friend class chrome_browser_net::Predictor; // http://crbug.com/78451 188 friend class chrome_browser_net::Predictor; // http://crbug.com/78451
189 friend class 189 friend class
190 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 190 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248
191 friend class content::GLHelper; // http://crbug.com/125415 191 friend class content::GLHelper; // http://crbug.com/125415
192 friend class content::GpuChannelHost; // http://crbug.com/125264 192 friend class content::GpuChannelHost; // http://crbug.com/125264
193 friend class content::TextInputClientMac; // http://crbug.com/121917
193 friend class dbus::Bus; // http://crbug.com/125222 194 friend class dbus::Bus; // http://crbug.com/125222
194 friend class disk_cache::BackendImpl; // http://crbug.com/74623 195 friend class disk_cache::BackendImpl; // http://crbug.com/74623
195 friend class disk_cache::InFlightIO; // http://crbug.com/74623 196 friend class disk_cache::InFlightIO; // http://crbug.com/74623
196 friend class media::AudioOutputController; // http://crbug.com/120973 197 friend class media::AudioOutputController; // http://crbug.com/120973
197 friend class net::FileStreamPosix; // http://crbug.com/115067 198 friend class net::FileStreamPosix; // http://crbug.com/115067
198 friend class net::FileStreamWin; // http://crbug.com/115067 199 friend class net::FileStreamWin; // http://crbug.com/115067
199 friend class net::NetworkManagerApi; // http://crbug.com/125097 200 friend class net::NetworkManagerApi; // http://crbug.com/125097
200 friend class ::AcceleratedPresenter; // http://crbug.com/125391 201 friend class ::AcceleratedPresenter; // http://crbug.com/125391
201 friend class ::BrowserProcessImpl; // http://crbug.com/125207 202 friend class ::BrowserProcessImpl; // http://crbug.com/125207
202 friend class ::MetricsService; // http://crbug.com/124954 203 friend class ::MetricsService; // http://crbug.com/124954
203 friend class ::TextInputClientMac; // http://crbug.com/121917
204 friend class ::NativeBackendKWallet; // http://crbug.com/125331 204 friend class ::NativeBackendKWallet; // http://crbug.com/125331
205 // END USAGE THAT NEEDS TO BE FIXED. 205 // END USAGE THAT NEEDS TO BE FIXED.
206 206
207 #if ENABLE_THREAD_RESTRICTIONS 207 #if ENABLE_THREAD_RESTRICTIONS
208 static bool SetWaitAllowed(bool allowed); 208 static bool SetWaitAllowed(bool allowed);
209 #else 209 #else
210 static bool SetWaitAllowed(bool allowed) { return true; } 210 static bool SetWaitAllowed(bool allowed) { return true; }
211 #endif 211 #endif
212 212
213 // Constructing a ScopedAllowWait temporarily allows waiting on the current 213 // Constructing a ScopedAllowWait temporarily allows waiting on the current
(...skipping 11 matching lines...) Expand all
225 225
226 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 226 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
227 }; 227 };
228 228
229 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 229 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
230 }; 230 };
231 231
232 } // namespace base 232 } // namespace base
233 233
234 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 234 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/browser_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698