Home | History | Annotate | Download | only in recovery_private
      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
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/browser/extensions/api/recovery_private/write_from_url_operation.h"
      6 
      7 namespace extensions {
      8 namespace recovery {
      9 
     10 WriteFromUrlOperation::WriteFromUrlOperation(RecoveryOperationManager* manager,
     11                                              const ExtensionId& extension_id,
     12                                              const GURL& url,
     13                                              scoped_ptr<std::string> hash,
     14                                              bool saveImageAsDownload,
     15                                              const std::string& storage_unit_id)
     16   : RecoveryOperation(manager, extension_id),
     17     url_(url),
     18     hash_(hash.Pass()),
     19     saveImageAsDownload_(saveImageAsDownload),
     20     storage_unit_id_(storage_unit_id) {
     21   // "use" this field so that clang does not complain at this time.
     22   (void)saveImageAsDownload_;
     23 }
     24 
     25 WriteFromUrlOperation::~WriteFromUrlOperation() {
     26 }
     27 
     28 } // namespace recovery
     29 } // namespace extensions
     30