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

Side by Side Diff: chrome/browser/media_galleries/fileapi/device_media_async_file_util.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "webkit/browser/fileapi/async_file_util.h" 12 #include "webkit/browser/fileapi/async_file_util.h"
13 #include "webkit/common/blob/shareable_file_reference.h" 13 #include "webkit/common/blob/shareable_file_reference.h"
14 14
15 namespace base { 15 namespace base {
16 class SequencedTaskRunner; 16 class SequencedTaskRunner;
17 class Time; 17 class Time;
18 } 18 }
19 19
20 namespace fileapi { 20 namespace fileapi {
21 class FileSystemOperationContext; 21 class FileSystemOperationContext;
22 class FileSystemURL; 22 class FileSystemURL;
23 } 23 }
24 24
25 namespace chrome {
26
27 class DeviceMediaAsyncFileUtil : public fileapi::AsyncFileUtil { 25 class DeviceMediaAsyncFileUtil : public fileapi::AsyncFileUtil {
28 public: 26 public:
29 virtual ~DeviceMediaAsyncFileUtil(); 27 virtual ~DeviceMediaAsyncFileUtil();
30 28
31 // Returns an instance of DeviceMediaAsyncFileUtil. Returns NULL if 29 // Returns an instance of DeviceMediaAsyncFileUtil. Returns NULL if
32 // asynchronous operation is not supported. Callers own the returned 30 // asynchronous operation is not supported. Callers own the returned
33 // object. 31 // object.
34 static DeviceMediaAsyncFileUtil* Create(const base::FilePath& profile_path); 32 static DeviceMediaAsyncFileUtil* Create(const base::FilePath& profile_path);
35 33
36 // AsyncFileUtil overrides. 34 // AsyncFileUtil overrides.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 176
179 // Profile path. 177 // Profile path.
180 const base::FilePath profile_path_; 178 const base::FilePath profile_path_;
181 179
182 // For callbacks that may run after destruction. 180 // For callbacks that may run after destruction.
183 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; 181 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_;
184 182
185 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); 183 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil);
186 }; 184 };
187 185
188 } // namespace chrome
189
190 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _ 186 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698