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

Side by Side Diff: trunk/src/chrome/browser/media_galleries/scoped_mtp_device_map_entry.h

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 // ScopedMTPDeviceMapEntry manages the lifetime of a MTPDeviceAsyncDelegate. 5 // ScopedMTPDeviceMapEntry manages the lifetime of a MTPDeviceAsyncDelegate.
6 // Each extension that uses a device holds a reference to the device's 6 // Each extension that uses a device holds a reference to the device's
7 // ScopedMTPDeviceMapEntry. 7 // ScopedMTPDeviceMapEntry.
8 8
9 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_ 9 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_
10 #define CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_ 10 #define CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/task/sequenced_task_runner_helpers.h" 15 #include "base/sequenced_task_runner_helpers.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 17
18 namespace chrome { 18 namespace chrome {
19 19
20 class MTPDeviceAsyncDelegate; 20 class MTPDeviceAsyncDelegate;
21 21
22 class ScopedMTPDeviceMapEntry 22 class ScopedMTPDeviceMapEntry
23 : public base::RefCountedThreadSafe< 23 : public base::RefCountedThreadSafe<
24 ScopedMTPDeviceMapEntry, content::BrowserThread::DeleteOnUIThread> { 24 ScopedMTPDeviceMapEntry, content::BrowserThread::DeleteOnUIThread> {
25 public: 25 public:
(...skipping 29 matching lines...) Expand all
55 55
56 // Called when the object is destroyed. 56 // Called when the object is destroyed.
57 base::Closure on_destruction_callback_; 57 base::Closure on_destruction_callback_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ScopedMTPDeviceMapEntry); 59 DISALLOW_COPY_AND_ASSIGN(ScopedMTPDeviceMapEntry);
60 }; 60 };
61 61
62 } // namespace chrome 62 } // namespace chrome
63 63
64 #endif // CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_ 64 #endif // CHROME_BROWSER_MEDIA_GALLERIES_SCOPED_MTP_DEVICE_MAP_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698