| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/indexed_db/indexed_db_internals_ui.h" | 5 #include "content/browser/indexed_db/indexed_db_internals_ui.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 294 } |
| 295 | 295 |
| 296 void IndexedDBInternalsUI::OnDownloadStarted( | 296 void IndexedDBInternalsUI::OnDownloadStarted( |
| 297 const base::FilePath& partition_path, | 297 const base::FilePath& partition_path, |
| 298 const GURL& origin_url, | 298 const GURL& origin_url, |
| 299 const base::FilePath& temp_path, | 299 const base::FilePath& temp_path, |
| 300 DownloadItem* item, | 300 DownloadItem* item, |
| 301 net::Error error) { | 301 net::Error error) { |
| 302 | 302 |
| 303 if (error != net::OK) { | 303 if (error != net::OK) { |
| 304 LOG(ERROR) | 304 LOG(ERROR) << "Error downloading database dump: " |
| 305 << "Error downloading database dump: " << net::ErrorToString(error); | 305 << net::ErrorToString(error); |
| 306 return; | 306 return; |
| 307 } | 307 } |
| 308 | 308 |
| 309 item->AddObserver(new FileDeleter(temp_path)); | 309 item->AddObserver(new FileDeleter(temp_path)); |
| 310 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady", | 310 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady", |
| 311 base::StringValue(partition_path.value()), | 311 base::StringValue(partition_path.value()), |
| 312 base::StringValue(origin_url.spec())); | 312 base::StringValue(origin_url.spec())); |
| 313 } | 313 } |
| 314 | 314 |
| 315 } // namespace content | 315 } // namespace content |
| OLD | NEW |