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

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

Issue 304533003: [fsp] Rename has_next to has_more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 6 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/extensions/file_system_provider/provider_function.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/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 <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return true; 125 return true;
126 } 126 }
127 127
128 bool FileSystemProviderInternalReadDirectoryRequestedSuccessFunction:: 128 bool FileSystemProviderInternalReadDirectoryRequestedSuccessFunction::
129 RunWhenValid() { 129 RunWhenValid() {
130 using api::file_system_provider_internal::ReadDirectoryRequestedSuccess:: 130 using api::file_system_provider_internal::ReadDirectoryRequestedSuccess::
131 Params; 131 Params;
132 scoped_ptr<Params> params(Params::Create(*args_)); 132 scoped_ptr<Params> params(Params::Create(*args_));
133 EXTENSION_FUNCTION_VALIDATE(params); 133 EXTENSION_FUNCTION_VALIDATE(params);
134 134
135 const bool has_next = params->has_next; 135 const bool has_more = params->has_more;
136 FulfillRequest(RequestValue::CreateForReadDirectorySuccess(params.Pass()), 136 FulfillRequest(RequestValue::CreateForReadDirectorySuccess(params.Pass()),
137 has_next); 137 has_more);
138 return true; 138 return true;
139 } 139 }
140 140
141 bool 141 bool
142 FileSystemProviderInternalReadDirectoryRequestedErrorFunction::RunWhenValid() { 142 FileSystemProviderInternalReadDirectoryRequestedErrorFunction::RunWhenValid() {
143 using api::file_system_provider_internal::ReadDirectoryRequestedError::Params; 143 using api::file_system_provider_internal::ReadDirectoryRequestedError::Params;
144 const scoped_ptr<Params> params(Params::Create(*args_)); 144 const scoped_ptr<Params> params(Params::Create(*args_));
145 EXTENSION_FUNCTION_VALIDATE(params); 145 EXTENSION_FUNCTION_VALIDATE(params);
146 146
147 RejectRequest(ProviderErrorToFileError(params->error)); 147 RejectRequest(ProviderErrorToFileError(params->error));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 RejectRequest(ProviderErrorToFileError(params->error)); 187 RejectRequest(ProviderErrorToFileError(params->error));
188 return true; 188 return true;
189 } 189 }
190 190
191 bool 191 bool
192 FileSystemProviderInternalReadFileRequestedSuccessFunction::RunWhenValid() { 192 FileSystemProviderInternalReadFileRequestedSuccessFunction::RunWhenValid() {
193 using api::file_system_provider_internal::ReadFileRequestedSuccess::Params; 193 using api::file_system_provider_internal::ReadFileRequestedSuccess::Params;
194 scoped_ptr<Params> params(Params::Create(*args_)); 194 scoped_ptr<Params> params(Params::Create(*args_));
195 EXTENSION_FUNCTION_VALIDATE(params); 195 EXTENSION_FUNCTION_VALIDATE(params);
196 196
197 const bool has_next = params->has_next; 197 const bool has_more = params->has_more;
198 FulfillRequest(RequestValue::CreateForReadFileSuccess(params.Pass()), 198 FulfillRequest(RequestValue::CreateForReadFileSuccess(params.Pass()),
199 has_next); 199 has_more);
200 return true; 200 return true;
201 } 201 }
202 202
203 bool FileSystemProviderInternalReadFileRequestedErrorFunction::RunWhenValid() { 203 bool FileSystemProviderInternalReadFileRequestedErrorFunction::RunWhenValid() {
204 using api::file_system_provider_internal::ReadFileRequestedError::Params; 204 using api::file_system_provider_internal::ReadFileRequestedError::Params;
205 const scoped_ptr<Params> params(Params::Create(*args_)); 205 const scoped_ptr<Params> params(Params::Create(*args_));
206 EXTENSION_FUNCTION_VALIDATE(params); 206 EXTENSION_FUNCTION_VALIDATE(params);
207 207
208 RejectRequest(ProviderErrorToFileError(params->error)); 208 RejectRequest(ProviderErrorToFileError(params->error));
209 return true; 209 return true;
210 } 210 }
211 211
212 } // namespace extensions 212 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_system_provider/provider_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698