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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 6731033: Remove the path from PlatformFileInfo; it's cleaner just to pass it along as a (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « base/platform_file.h ('k') | content/browser/file_system/file_system_dispatcher_host.cc » ('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 (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 "chrome/browser/extensions/extension_file_browser_private_api.h" 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
12 #include "content/browser/browser_thread.h" 12 #include "content/browser/browser_thread.h"
13 #include "webkit/fileapi/file_system_operation.h" 13 #include "webkit/fileapi/file_system_operation.h"
14 #include "webkit/fileapi/file_system_types.h" 14 #include "webkit/fileapi/file_system_types.h"
15 15
16 class LocalFileSystemCallbackDispatcher 16 class LocalFileSystemCallbackDispatcher
17 : public fileapi::FileSystemCallbackDispatcher { 17 : public fileapi::FileSystemCallbackDispatcher {
18 public: 18 public:
19 explicit LocalFileSystemCallbackDispatcher( 19 explicit LocalFileSystemCallbackDispatcher(
20 RequestLocalFileSystemFunction* function) : function_(function) { 20 RequestLocalFileSystemFunction* function) : function_(function) {
21 DCHECK(function_); 21 DCHECK(function_);
22 } 22 }
23 // fileapi::FileSystemCallbackDispatcher overrides. 23 // fileapi::FileSystemCallbackDispatcher overrides.
24 virtual void DidSucceed() OVERRIDE { 24 virtual void DidSucceed() OVERRIDE {
25 NOTREACHED(); 25 NOTREACHED();
26 } 26 }
27 virtual void DidReadMetadata(const base::PlatformFileInfo& info) OVERRIDE { 27 virtual void DidReadMetadata(const base::PlatformFileInfo& info,
28 const FilePath& unused) OVERRIDE {
28 NOTREACHED(); 29 NOTREACHED();
29 } 30 }
30 virtual void DidReadDirectory( 31 virtual void DidReadDirectory(
31 const std::vector<base::FileUtilProxy::Entry>& entries, 32 const std::vector<base::FileUtilProxy::Entry>& entries,
32 bool has_more) OVERRIDE { 33 bool has_more) OVERRIDE {
33 NOTREACHED(); 34 NOTREACHED();
34 } 35 }
35 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE { 36 virtual void DidWrite(int64 bytes, bool complete) OVERRIDE {
36 NOTREACHED(); 37 NOTREACHED();
37 } 38 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 void RequestLocalFileSystemFunction::RespondFailedOnUIThread( 91 void RequestLocalFileSystemFunction::RespondFailedOnUIThread(
91 base::PlatformFileError error_code) { 92 base::PlatformFileError error_code) {
92 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 93 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
93 result_.reset(new DictionaryValue()); 94 result_.reset(new DictionaryValue());
94 DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get()); 95 DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get());
95 dict->SetInteger("error", static_cast<int>(error_code)); 96 dict->SetInteger("error", static_cast<int>(error_code));
96 SendResponse(true); 97 SendResponse(true);
97 } 98 }
98 99
OLDNEW
« no previous file with comments | « base/platform_file.h ('k') | content/browser/file_system/file_system_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698