OLD | NEW |
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 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #endif // defined(OS_MACOSX) | 53 #endif // defined(OS_MACOSX) |
54 | 54 |
55 using storage::FileSystemContext; | 55 using storage::FileSystemContext; |
56 using storage::FileSystemURL; | 56 using storage::FileSystemURL; |
57 | 57 |
58 namespace { | 58 namespace { |
59 | 59 |
60 const char kMediaGalleryMountPrefix[] = "media_galleries-"; | 60 const char kMediaGalleryMountPrefix[] = "media_galleries-"; |
61 | 61 |
62 void OnPreferencesInit( | 62 void OnPreferencesInit( |
63 const content::RenderViewHost* rvh, | 63 content::RenderViewHost* rvh, |
64 const extensions::Extension* extension, | 64 const extensions::Extension* extension, |
65 MediaGalleryPrefId pref_id, | 65 MediaGalleryPrefId pref_id, |
66 const base::Callback<void(base::File::Error result)>& callback) { | 66 const base::Callback<void(base::File::Error result)>& callback) { |
67 MediaFileSystemRegistry* registry = | 67 MediaFileSystemRegistry* registry = |
68 g_browser_process->media_file_system_registry(); | 68 g_browser_process->media_file_system_registry(); |
69 registry->RegisterMediaFileSystemForExtension( | 69 registry->RegisterMediaFileSystemForExtension( |
70 content::WebContents::FromRenderViewHost(rvh), extension, pref_id, | 70 content::WebContents::FromRenderViewHost(rvh), extension, pref_id, |
71 callback); | 71 callback); |
72 } | 72 } |
73 | 73 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 const storage::ChangeObserverList* MediaFileSystemBackend::GetChangeObservers( | 399 const storage::ChangeObserverList* MediaFileSystemBackend::GetChangeObservers( |
400 storage::FileSystemType type) const { | 400 storage::FileSystemType type) const { |
401 return NULL; | 401 return NULL; |
402 } | 402 } |
403 | 403 |
404 const storage::AccessObserverList* MediaFileSystemBackend::GetAccessObservers( | 404 const storage::AccessObserverList* MediaFileSystemBackend::GetAccessObservers( |
405 storage::FileSystemType type) const { | 405 storage::FileSystemType type) const { |
406 return NULL; | 406 return NULL; |
407 } | 407 } |
OLD | NEW |