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

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

Issue 2554123002: Support parallel captures from the StackSamplingProfiler. (Closed)
Patch Set: addressed review comments by wittman Created 3 years, 10 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 | « base/profiler/stack_sampling_profiler_unittest.cc ('k') | no next file » | 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/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 class BrowserProcessImpl; 12 class BrowserProcessImpl;
13 class HistogramSynchronizer; 13 class HistogramSynchronizer;
14 class NativeBackendKWallet; 14 class NativeBackendKWallet;
15 class ScopedAllowWaitForLegacyWebViewApi; 15 class ScopedAllowWaitForLegacyWebViewApi;
16 16
17 namespace base {
18 class StackSamplingProfiler;
19 }
20
17 namespace cc { 21 namespace cc {
18 class CompletionEvent; 22 class CompletionEvent;
19 class SingleThreadTaskGraphRunner; 23 class SingleThreadTaskGraphRunner;
20 } 24 }
21 namespace chromeos { 25 namespace chromeos {
22 class BlockingMethodCaller; 26 class BlockingMethodCaller;
23 namespace system { 27 namespace system {
24 class StatisticsProviderImpl; 28 class StatisticsProviderImpl;
25 } 29 }
26 } 30 }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 static void AssertIOAllowed() {} 171 static void AssertIOAllowed() {}
168 static bool SetSingletonAllowed(bool allowed) { return true; } 172 static bool SetSingletonAllowed(bool allowed) { return true; }
169 static void AssertSingletonAllowed() {} 173 static void AssertSingletonAllowed() {}
170 static void DisallowWaiting() {} 174 static void DisallowWaiting() {}
171 static void AssertWaitAllowed() {} 175 static void AssertWaitAllowed() {}
172 #endif 176 #endif
173 177
174 private: 178 private:
175 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first. 179 // DO NOT ADD ANY OTHER FRIEND STATEMENTS, talk to jam or brettw first.
176 // BEGIN ALLOWED USAGE. 180 // BEGIN ALLOWED USAGE.
181 friend class base::StackSamplingProfiler;
177 friend class content::BrowserShutdownProfileDumper; 182 friend class content::BrowserShutdownProfileDumper;
178 friend class content::BrowserSurfaceViewManager; 183 friend class content::BrowserSurfaceViewManager;
179 friend class content::BrowserTestBase; 184 friend class content::BrowserTestBase;
180 friend class content::NestedMessagePumpAndroid; 185 friend class content::NestedMessagePumpAndroid;
181 friend class content::ScopedAllowWaitForAndroidLayoutTests; 186 friend class content::ScopedAllowWaitForAndroidLayoutTests;
182 friend class content::ScopedAllowWaitForDebugURL; 187 friend class content::ScopedAllowWaitForDebugURL;
183 friend class ::HistogramSynchronizer; 188 friend class ::HistogramSynchronizer;
184 friend class internal::TaskTracker; 189 friend class internal::TaskTracker;
185 friend class ::ScopedAllowWaitForLegacyWebViewApi; 190 friend class ::ScopedAllowWaitForLegacyWebViewApi;
186 friend class cc::CompletionEvent; 191 friend class cc::CompletionEvent;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 251
247 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 252 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
248 }; 253 };
249 254
250 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 255 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
251 }; 256 };
252 257
253 } // namespace base 258 } // namespace base
254 259
255 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 260 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « base/profiler/stack_sampling_profiler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698