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" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/memory/scoped_vector.h" | |
13 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 14 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
16 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/download_manager.h" | 17 #include "content/public/browser/download_manager.h" |
19 #include "content/public/browser/download_url_parameters.h" | 18 #include "content/public/browser/download_url_parameters.h" |
20 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
21 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
22 #include "content/public/browser/web_ui.h" | 21 #include "content/public/browser/web_ui.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 return; | 282 return; |
284 } | 283 } |
285 | 284 |
286 item->AddObserver(new FileDeleter(temp_path)); | 285 item->AddObserver(new FileDeleter(temp_path)); |
287 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady", | 286 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady", |
288 base::StringValue(partition_path.value()), | 287 base::StringValue(partition_path.value()), |
289 base::StringValue(origin_url.spec())); | 288 base::StringValue(origin_url.spec())); |
290 } | 289 } |
291 | 290 |
292 } // namespace content | 291 } // namespace content |
OLD | NEW |