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

Side by Side Diff: chrome/browser/extensions/api/image_writer_private/image_writer_private_api.cc

Issue 2685453002: Move file_handlers API from //chrome to //extensions (Closed)
Patch Set: rebase Created 3 years, 10 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
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/extensions/api/image_writer_private/image_writer_privat e_api.h"
6
5 #include "base/logging.h" 7 #include "base/logging.h"
6 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h"
7 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" 8 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h"
8 #include "chrome/browser/extensions/api/image_writer_private/image_writer_privat e_api.h"
9 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h " 9 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h "
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "content/public/browser/render_frame_host.h" 11 #include "content/public/browser/render_frame_host.h"
12 #include "content/public/browser/render_process_host.h" 12 #include "content/public/browser/render_process_host.h"
13 #include "extensions/browser/api/file_handlers/app_file_handler_util.h"
13 14
14 namespace image_writer_api = extensions::api::image_writer_private; 15 namespace image_writer_api = extensions::api::image_writer_private;
15 16
16 namespace extensions { 17 namespace extensions {
17 18
18 ImageWriterPrivateWriteFromUrlFunction:: 19 ImageWriterPrivateWriteFromUrlFunction::
19 ImageWriterPrivateWriteFromUrlFunction() { 20 ImageWriterPrivateWriteFromUrlFunction() {
20 } 21 }
21 22
22 ImageWriterPrivateWriteFromUrlFunction:: 23 ImageWriterPrivateWriteFromUrlFunction::
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 results_ = image_writer_api::ListRemovableStorageDevices::Results::Create( 181 results_ = image_writer_api::ListRemovableStorageDevices::Results::Create(
181 device_list->data); 182 device_list->data);
182 SendResponse(true); 183 SendResponse(true);
183 } else { 184 } else {
184 error_ = image_writer::error::kDeviceListError; 185 error_ = image_writer::error::kDeviceListError;
185 SendResponse(false); 186 SendResponse(false);
186 } 187 }
187 } 188 }
188 189
189 } // namespace extensions 190 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698