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

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

Issue 11359141: Use Netlink instead of NetworkManager (via D-bus) to monitor network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address szym's second round of unittest comments Created 8 years 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 | net/base/address_tracker_linux.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/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
59 } 59 }
60 namespace net { 60 namespace net {
61 class FileStreamPosix; 61 class FileStreamPosix;
62 class FileStreamWin; 62 class FileStreamWin;
63 class NetworkManagerApi; 63 namespace internal {
64 class AddressTrackerLinux;
65 }
64 } 66 }
65 67
66 namespace remoting { 68 namespace remoting {
67 class AutoThread; 69 class AutoThread;
68 } 70 }
69 71
70 namespace base { 72 namespace base {
71 73
72 class SequencedWorkerPool; 74 class SequencedWorkerPool;
73 class SimpleThread; 75 class SimpleThread;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248 193 content::BrowserGpuChannelHostFactory; // http://crbug.com/125248
192 friend class content::GLHelper; // http://crbug.com/125415 194 friend class content::GLHelper; // http://crbug.com/125415
193 friend class content::GpuChannelHost; // http://crbug.com/125264 195 friend class content::GpuChannelHost; // http://crbug.com/125264
194 friend class content::TextInputClientMac; // http://crbug.com/121917 196 friend class content::TextInputClientMac; // http://crbug.com/121917
195 friend class dbus::Bus; // http://crbug.com/125222 197 friend class dbus::Bus; // http://crbug.com/125222
196 friend class disk_cache::BackendImpl; // http://crbug.com/74623 198 friend class disk_cache::BackendImpl; // http://crbug.com/74623
197 friend class disk_cache::InFlightIO; // http://crbug.com/74623 199 friend class disk_cache::InFlightIO; // http://crbug.com/74623
198 friend class media::AudioOutputController; // http://crbug.com/120973 200 friend class media::AudioOutputController; // http://crbug.com/120973
199 friend class net::FileStreamPosix; // http://crbug.com/115067 201 friend class net::FileStreamPosix; // http://crbug.com/115067
200 friend class net::FileStreamWin; // http://crbug.com/115067 202 friend class net::FileStreamWin; // http://crbug.com/115067
201 friend class net::NetworkManagerApi; // http://crbug.com/125097 203 friend class net::internal::AddressTrackerLinux; // http://crbug.com/125097
202 friend class ::AcceleratedPresenter; // http://crbug.com/125391 204 friend class ::AcceleratedPresenter; // http://crbug.com/125391
203 friend class ::BrowserProcessImpl; // http://crbug.com/125207 205 friend class ::BrowserProcessImpl; // http://crbug.com/125207
204 friend class ::MetricsService; // http://crbug.com/124954 206 friend class ::MetricsService; // http://crbug.com/124954
205 friend class ::NativeBackendKWallet; // http://crbug.com/125331 207 friend class ::NativeBackendKWallet; // http://crbug.com/125331
206 // END USAGE THAT NEEDS TO BE FIXED. 208 // END USAGE THAT NEEDS TO BE FIXED.
207 209
208 #if ENABLE_THREAD_RESTRICTIONS 210 #if ENABLE_THREAD_RESTRICTIONS
209 static bool SetWaitAllowed(bool allowed); 211 static bool SetWaitAllowed(bool allowed);
210 #else 212 #else
211 static bool SetWaitAllowed(bool allowed) { return true; } 213 static bool SetWaitAllowed(bool allowed) { return true; }
(...skipping 14 matching lines...) Expand all
226 228
227 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait); 229 DISALLOW_COPY_AND_ASSIGN(ScopedAllowWait);
228 }; 230 };
229 231
230 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions); 232 DISALLOW_IMPLICIT_CONSTRUCTORS(ThreadRestrictions);
231 }; 233 };
232 234
233 } // namespace base 235 } // namespace base
234 236
235 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_ 237 #endif // BASE_THREADING_THREAD_RESTRICTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/address_tracker_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698