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

Side by Side Diff: chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc

Issue 440653003: [fsp] Add support for aborting running operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed DCHECKs. Created 6 years, 4 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 | « no previous file | chrome/browser/chromeos/file_system_provider/fake_provided_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/file_system_provider/file_system_pr ovider_api.h" 5 #include "chrome/browser/chromeos/extensions/file_system_provider/file_system_pr ovider_api.h"
6 6
7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
8 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" 8 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
9 #include "chrome/browser/chromeos/file_system_provider/request_value.h" 9 #include "chrome/browser/chromeos/file_system_provider/request_value.h"
10 #include "chrome/browser/chromeos/file_system_provider/service.h" 10 #include "chrome/browser/chromeos/file_system_provider/service.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 case api::file_system_provider::PROVIDER_ERROR_NO_MEMORY: 55 case api::file_system_provider::PROVIDER_ERROR_NO_MEMORY:
56 return base::File::FILE_ERROR_NO_MEMORY; 56 return base::File::FILE_ERROR_NO_MEMORY;
57 case api::file_system_provider::PROVIDER_ERROR_NO_SPACE: 57 case api::file_system_provider::PROVIDER_ERROR_NO_SPACE:
58 return base::File::FILE_ERROR_NO_SPACE; 58 return base::File::FILE_ERROR_NO_SPACE;
59 case api::file_system_provider::PROVIDER_ERROR_NOT_A_DIRECTORY: 59 case api::file_system_provider::PROVIDER_ERROR_NOT_A_DIRECTORY:
60 return base::File::FILE_ERROR_NOT_A_DIRECTORY; 60 return base::File::FILE_ERROR_NOT_A_DIRECTORY;
61 case api::file_system_provider::PROVIDER_ERROR_INVALID_OPERATION: 61 case api::file_system_provider::PROVIDER_ERROR_INVALID_OPERATION:
62 return base::File::FILE_ERROR_INVALID_OPERATION; 62 return base::File::FILE_ERROR_INVALID_OPERATION;
63 case api::file_system_provider::PROVIDER_ERROR_SECURITY: 63 case api::file_system_provider::PROVIDER_ERROR_SECURITY:
64 return base::File::FILE_ERROR_SECURITY; 64 return base::File::FILE_ERROR_SECURITY;
65 case api::file_system_provider::PROVIDER_ERROR_ABORT:
66 return base::File::FILE_ERROR_ABORT;
67 case api::file_system_provider::PROVIDER_ERROR_NOT_A_FILE: 65 case api::file_system_provider::PROVIDER_ERROR_NOT_A_FILE:
68 return base::File::FILE_ERROR_NOT_A_FILE; 66 return base::File::FILE_ERROR_NOT_A_FILE;
69 case api::file_system_provider::PROVIDER_ERROR_NOT_EMPTY: 67 case api::file_system_provider::PROVIDER_ERROR_NOT_EMPTY:
70 return base::File::FILE_ERROR_NOT_EMPTY; 68 return base::File::FILE_ERROR_NOT_EMPTY;
71 case api::file_system_provider::PROVIDER_ERROR_INVALID_URL: 69 case api::file_system_provider::PROVIDER_ERROR_INVALID_URL:
72 return base::File::FILE_ERROR_INVALID_URL; 70 return base::File::FILE_ERROR_INVALID_URL;
73 case api::file_system_provider::PROVIDER_ERROR_IO: 71 case api::file_system_provider::PROVIDER_ERROR_IO:
74 return base::File::FILE_ERROR_IO; 72 return base::File::FILE_ERROR_IO;
75 case api::file_system_provider::PROVIDER_ERROR_NONE: 73 case api::file_system_provider::PROVIDER_ERROR_NONE:
76 NOTREACHED(); 74 NOTREACHED();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 133
136 void FileSystemProviderInternalFunction::SetErrorResponse( 134 void FileSystemProviderInternalFunction::SetErrorResponse(
137 const std::string& name, 135 const std::string& name,
138 const std::string& message) { 136 const std::string& message) {
139 base::ListValue* result = new base::ListValue(); 137 base::ListValue* result = new base::ListValue();
140 result->Append(CreateError(name, message)); 138 result->Append(CreateError(name, message));
141 SetResult(result); 139 SetResult(result);
142 } 140 }
143 141
144 } // namespace extensions 142 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698