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

Side by Side Diff: content/browser/indexed_db/indexed_db_internals_ui.cc

Issue 15659013: Revert "Migrate the IndexedDB backend from Blink to Chromium" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.h ('k') | content/browser/indexed_db/indexed_db_leveldb_coding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698