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

Side by Side Diff: content/browser/file_system/file_system_dispatcher_host.cc

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/file_system/file_system_dispatcher_host.h" 5 #include "content/browser/file_system/file_system_dispatcher_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 virtual ~BrowserFileSystemCallbackDispatcher() { 41 virtual ~BrowserFileSystemCallbackDispatcher() {
42 dispatcher_host_->UnregisterOperation(request_id_); 42 dispatcher_host_->UnregisterOperation(request_id_);
43 } 43 }
44 44
45 virtual void DidSucceed() { 45 virtual void DidSucceed() {
46 dispatcher_host_->Send(new FileSystemMsg_DidSucceed(request_id_)); 46 dispatcher_host_->Send(new FileSystemMsg_DidSucceed(request_id_));
47 } 47 }
48 48
49 virtual void DidGetLocalPath(const FilePath& local_path) {
50 NOTREACHED();
51 }
52
49 virtual void DidReadMetadata( 53 virtual void DidReadMetadata(
50 const base::PlatformFileInfo& info, 54 const base::PlatformFileInfo& info,
51 const FilePath& platform_path) { 55 const FilePath& platform_path) {
52 dispatcher_host_->Send(new FileSystemMsg_DidReadMetadata( 56 dispatcher_host_->Send(new FileSystemMsg_DidReadMetadata(
53 request_id_, info, platform_path)); 57 request_id_, info, platform_path));
54 } 58 }
55 59
56 virtual void DidReadDirectory( 60 virtual void DidReadDirectory(
57 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more) { 61 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more) {
58 dispatcher_host_->Send(new FileSystemMsg_DidReadDirectory( 62 dispatcher_host_->Send(new FileSystemMsg_DidReadDirectory(
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 context_, 286 context_,
283 NULL); 287 NULL);
284 operations_.AddWithID(operation, request_id); 288 operations_.AddWithID(operation, request_id);
285 return operation; 289 return operation;
286 } 290 }
287 291
288 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { 292 void FileSystemDispatcherHost::UnregisterOperation(int request_id) {
289 DCHECK(operations_.Lookup(request_id)); 293 DCHECK(operations_.Lookup(request_id));
290 operations_.Remove(request_id); 294 operations_.Remove(request_id);
291 } 295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698