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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_delegate.cc

Issue 2712613002: Call WatcherManager functions on the IO thread. (Closed)
Patch Set: Addressed hidehiko's comments. Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h" 5 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const storage::FileSystemURL& url, 49 const storage::FileSystemURL& url,
50 int64_t offset, 50 int64_t offset,
51 storage::FileSystemContext* context) { 51 storage::FileSystemContext* context) {
52 DCHECK_CURRENTLY_ON(BrowserThread::IO); 52 DCHECK_CURRENTLY_ON(BrowserThread::IO);
53 NOTREACHED(); // Read-only file system. 53 NOTREACHED(); // Read-only file system.
54 return nullptr; 54 return nullptr;
55 } 55 }
56 56
57 storage::WatcherManager* ArcDocumentsProviderBackendDelegate::GetWatcherManager( 57 storage::WatcherManager* ArcDocumentsProviderBackendDelegate::GetWatcherManager(
58 storage::FileSystemType type) { 58 storage::FileSystemType type) {
59 DCHECK_CURRENTLY_ON(BrowserThread::UI); 59 DCHECK_CURRENTLY_ON(BrowserThread::IO);
60 NOTREACHED(); // Non-watchable file system. 60 NOTREACHED(); // Non-watchable file system.
61 return nullptr; 61 return nullptr;
62 } 62 }
63 63
64 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents( 64 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents(
65 const storage::FileSystemURL& url, 65 const storage::FileSystemURL& url,
66 const storage::URLCallback& callback) { 66 const storage::URLCallback& callback) {
67 DCHECK_CURRENTLY_ON(BrowserThread::IO); 67 DCHECK_CURRENTLY_ON(BrowserThread::IO);
68 NOTREACHED(); // Never called by chromeos::FileSystemBackend. 68 NOTREACHED(); // Never called by chromeos::FileSystemBackend.
69 callback.Run(GURL()); 69 callback.Run(GURL());
70 } 70 }
71 71
72 } // namespace arc 72 } // namespace arc
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698