Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 child_id_(child_id), | 188 child_id_(child_id), |
| 189 extension_(extension) { | 189 extension_(extension) { |
| 190 DCHECK(function_); | 190 DCHECK(function_); |
| 191 } | 191 } |
| 192 | 192 |
| 193 // fileapi::FileSystemCallbackDispatcher overrides. | 193 // fileapi::FileSystemCallbackDispatcher overrides. |
| 194 virtual void DidSucceed() OVERRIDE { | 194 virtual void DidSucceed() OVERRIDE { |
| 195 NOTREACHED(); | 195 NOTREACHED(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 virtual void DidGetLocalPath(const FilePath& local_path) { | |
| 199 NOTREACHED(); | |
| 200 } | |
| 201 | |
| 198 virtual void DidReadMetadata(const base::PlatformFileInfo& info, | 202 virtual void DidReadMetadata(const base::PlatformFileInfo& info, |
| 199 const FilePath& unused) OVERRIDE { | 203 const FilePath& unused) OVERRIDE { |
| 200 NOTREACHED(); | 204 NOTREACHED(); |
| 201 } | 205 } |
| 202 | 206 |
| 203 virtual void DidReadDirectory( | 207 virtual void DidReadDirectory( |
| 204 const std::vector<base::FileUtilProxy::Entry>& entries, | 208 const std::vector<base::FileUtilProxy::Entry>& entries, |
| 205 bool has_more) OVERRIDE { | 209 bool has_more) OVERRIDE { |
| 206 NOTREACHED(); | 210 NOTREACHED(); |
| 207 } | 211 } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 389 task_id_(task_id), | 393 task_id_(task_id), |
| 390 origin_file_urls_(file_urls) { | 394 origin_file_urls_(file_urls) { |
| 391 DCHECK(function_); | 395 DCHECK(function_); |
| 392 } | 396 } |
| 393 | 397 |
| 394 // fileapi::FileSystemCallbackDispatcher overrides. | 398 // fileapi::FileSystemCallbackDispatcher overrides. |
| 395 virtual void DidSucceed() OVERRIDE { | 399 virtual void DidSucceed() OVERRIDE { |
| 396 NOTREACHED(); | 400 NOTREACHED(); |
| 397 } | 401 } |
| 398 | 402 |
| 403 // Callback to report information for a file. | |
|
ericu
2011/04/19 20:30:49
Comment is unnecessary.
zel
2011/04/19 23:14:00
Done.
ericu
2011/04/19 23:36:19
Still there.
zel
2011/04/20 02:02:07
Done.
| |
| 404 virtual void DidGetLocalPath(const FilePath& local_path) { | |
| 405 NOTREACHED(); | |
| 406 } | |
| 407 | |
| 399 virtual void DidReadMetadata(const base::PlatformFileInfo& info, | 408 virtual void DidReadMetadata(const base::PlatformFileInfo& info, |
| 400 const FilePath& unused) OVERRIDE { | 409 const FilePath& unused) OVERRIDE { |
| 401 NOTREACHED(); | 410 NOTREACHED(); |
| 402 } | 411 } |
| 403 | 412 |
| 404 virtual void DidReadDirectory( | 413 virtual void DidReadDirectory( |
| 405 const std::vector<base::FileUtilProxy::Entry>& entries, | 414 const std::vector<base::FileUtilProxy::Entry>& entries, |
| 406 bool has_more) OVERRIDE { | 415 bool has_more) OVERRIDE { |
| 407 NOTREACHED(); | 416 NOTREACHED(); |
| 408 } | 417 } |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 947 SET_STRING(IDS_FILE_BROWSER, COMPUTING_SELECTION); | 956 SET_STRING(IDS_FILE_BROWSER, COMPUTING_SELECTION); |
| 948 SET_STRING(IDS_FILE_BROWSER, NOTHING_SELECTED); | 957 SET_STRING(IDS_FILE_BROWSER, NOTHING_SELECTED); |
| 949 SET_STRING(IDS_FILE_BROWSER, ONE_FILE_SELECTED); | 958 SET_STRING(IDS_FILE_BROWSER, ONE_FILE_SELECTED); |
| 950 SET_STRING(IDS_FILE_BROWSER, MANY_FILES_SELECTED); | 959 SET_STRING(IDS_FILE_BROWSER, MANY_FILES_SELECTED); |
| 951 | 960 |
| 952 #undef SET_STRING | 961 #undef SET_STRING |
| 953 | 962 |
| 954 SendResponse(true); | 963 SendResponse(true); |
| 955 return true; | 964 return true; |
| 956 } | 965 } |
| OLD | NEW |