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

Side by Side Diff: content/browser/browser_thread_impl.cc

Issue 19532003: Use a direct include of the message_loop header in content/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 #include "content/browser/browser_thread_impl.h" 5 #include "content/browser/browser_thread_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/atomicops.h" 9 #include "base/atomicops.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/message_loop/message_loop_proxy.h" 14 #include "base/message_loop/message_loop_proxy.h"
15 #include "base/threading/sequenced_worker_pool.h" 15 #include "base/threading/sequenced_worker_pool.h"
16 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
17 #include "content/public/browser/browser_thread_delegate.h" 17 #include "content/public/browser/browser_thread_delegate.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 namespace { 21 namespace {
22 22
23 // Friendly names for the well-known threads. 23 // Friendly names for the well-known threads.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 AtomicWord* storage = reinterpret_cast<AtomicWord*>( 483 AtomicWord* storage = reinterpret_cast<AtomicWord*>(
484 &globals.thread_delegates[identifier]); 484 &globals.thread_delegates[identifier]);
485 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange( 485 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange(
486 storage, reinterpret_cast<AtomicWord>(delegate)); 486 storage, reinterpret_cast<AtomicWord>(delegate));
487 487
488 // This catches registration when previously registered. 488 // This catches registration when previously registered.
489 DCHECK(!delegate || !old_pointer); 489 DCHECK(!delegate || !old_pointer);
490 } 490 }
491 491
492 } // namespace content 492 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/browser_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698