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

Side by Side Diff: chrome/browser/sync/util/weak_handle.h

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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
« no previous file with comments | « chrome/browser/sync/util/logging.cc ('k') | chrome/browser/sync/util/weak_handle.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Weak handles provides a way to refer to weak pointers from another 5 // Weak handles provides a way to refer to weak pointers from another
6 // thread. This is useful because it is not safe to reference a weak 6 // thread. This is useful because it is not safe to reference a weak
7 // pointer from a thread other than the thread on which it was 7 // pointer from a thread other than the thread on which it was
8 // created. 8 // created.
9 // 9 //
10 // Weak handles can be passed across threads, so for example, you can 10 // Weak handles can be passed across threads, so for example, you can
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #ifndef CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_ 47 #ifndef CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_
48 #define CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_ 48 #define CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_
49 #pragma once 49 #pragma once
50 50
51 #include <cstddef> 51 #include <cstddef>
52 52
53 #include "base/basictypes.h" 53 #include "base/basictypes.h"
54 #include "base/bind.h" 54 #include "base/bind.h"
55 #include "base/callback.h" 55 #include "base/callback.h"
56 #include "base/compiler_specific.h" 56 #include "base/compiler_specific.h"
57 #include "base/location.h"
57 #include "base/logging.h" 58 #include "base/logging.h"
58 #include "base/memory/ref_counted.h" 59 #include "base/memory/ref_counted.h"
59 #include "base/memory/weak_ptr.h" 60 #include "base/memory/weak_ptr.h"
60 61
61 namespace base { 62 namespace base {
62 class MessageLoopProxy; 63 class MessageLoopProxy;
63 } // namespace base 64 } // namespace base
64 65
65 namespace tracked_objects { 66 namespace tracked_objects {
66 class Location; 67 class Location;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 353
353 // Makes a WeakHandle from a WeakPtr. 354 // Makes a WeakHandle from a WeakPtr.
354 template <typename T> 355 template <typename T>
355 WeakHandle<T> MakeWeakHandle(const base::WeakPtr<T>& ptr) { 356 WeakHandle<T> MakeWeakHandle(const base::WeakPtr<T>& ptr) {
356 return WeakHandle<T>(ptr); 357 return WeakHandle<T>(ptr);
357 } 358 }
358 359
359 } // namespace browser_sync 360 } // namespace browser_sync
360 361
361 #endif // CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_ 362 #endif // CHROME_BROWSER_SYNC_UTIL_WEAK_HANDLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/logging.cc ('k') | chrome/browser/sync/util/weak_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698