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

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

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add Initialize() 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) 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_MEDIA_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "webkit/browser/fileapi/file_system_backend.h" 10 #include "webkit/browser/fileapi/file_system_backend.h"
(...skipping 21 matching lines...) Expand all
32 MediaFileSystemBackend( 32 MediaFileSystemBackend(
33 const base::FilePath& profile_path, 33 const base::FilePath& profile_path,
34 base::SequencedTaskRunner* media_task_runner); 34 base::SequencedTaskRunner* media_task_runner);
35 virtual ~MediaFileSystemBackend(); 35 virtual ~MediaFileSystemBackend();
36 36
37 static bool CurrentlyOnMediaTaskRunnerThread(); 37 static bool CurrentlyOnMediaTaskRunnerThread();
38 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); 38 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner();
39 39
40 // FileSystemBackend implementation. 40 // FileSystemBackend implementation.
41 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; 41 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE;
42 virtual void Initialize(const fileapi::FileSystemContext* context) OVERRIDE;
42 virtual void InitializeFileSystem( 43 virtual void InitializeFileSystem(
43 const GURL& origin_url, 44 const GURL& origin_url,
44 fileapi::FileSystemType type, 45 fileapi::FileSystemType type,
45 fileapi::OpenFileSystemMode mode, 46 fileapi::OpenFileSystemMode mode,
46 fileapi::FileSystemContext* context, 47 fileapi::FileSystemContext* context,
47 const InitializeFileSystemCallback& callback) OVERRIDE; 48 const InitializeFileSystemCallback& callback) OVERRIDE;
48 virtual fileapi::FileSystemFileUtil* GetFileUtil( 49 virtual fileapi::FileSystemFileUtil* GetFileUtil(
49 fileapi::FileSystemType type) OVERRIDE; 50 fileapi::FileSystemType type) OVERRIDE;
50 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 51 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
51 fileapi::FileSystemType type) OVERRIDE; 52 fileapi::FileSystemType type) OVERRIDE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; 85 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_;
85 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; 86 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_;
86 #endif // defined(OS_WIN) || defined(OS_MACOSX) 87 #endif // defined(OS_WIN) || defined(OS_MACOSX)
87 88
88 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); 89 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend);
89 }; 90 };
90 91
91 } // namespace chrome 92 } // namespace chrome
92 93
93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ 94 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698