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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
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/macros.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "base/threading/sequenced_worker_pool.h" 15 #include "base/threading/sequenced_worker_pool.h"
15 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
17 #include "build/build_config.h"
16 #include "content/public/browser/browser_thread_delegate.h" 18 #include "content/public/browser/browser_thread_delegate.h"
17 #include "content/public/browser/content_browser_client.h" 19 #include "content/public/browser/content_browser_client.h"
18 #include "net/disk_cache/simple/simple_backend_impl.h" 20 #include "net/disk_cache/simple/simple_backend_impl.h"
19 21
20 #if defined(OS_ANDROID) 22 #if defined(OS_ANDROID)
21 #include "base/android/jni_android.h" 23 #include "base/android/jni_android.h"
22 #endif 24 #endif
23 25
24 namespace content { 26 namespace content {
25 27
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 AtomicWord* storage = reinterpret_cast<AtomicWord*>( 544 AtomicWord* storage = reinterpret_cast<AtomicWord*>(
543 &globals.thread_delegates[identifier]); 545 &globals.thread_delegates[identifier]);
544 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange( 546 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange(
545 storage, reinterpret_cast<AtomicWord>(delegate)); 547 storage, reinterpret_cast<AtomicWord>(delegate));
546 548
547 // This catches registration when previously registered. 549 // This catches registration when previously registered.
548 DCHECK(!delegate || !old_pointer); 550 DCHECK(!delegate || !old_pointer);
549 } 551 }
550 552
551 } // namespace content 553 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_side_navigation_browsertest.cc ('k') | content/browser/browser_url_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698