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

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

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "content/browser/indexed_db/indexed_db_context_impl.h" 15 #include "content/browser/indexed_db/indexed_db_context_impl.h"
16 #include "content/public/browser/browser_context.h" 16 #include "content/public/browser/browser_context.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/download_manager.h" 18 #include "content/public/browser/download_manager.h"
19 #include "content/public/browser/download_url_parameters.h" 19 #include "content/public/browser/download_url_parameters.h"
20 #include "content/public/browser/storage_partition.h" 20 #include "content/public/browser/storage_partition.h"
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "content/public/browser/web_ui.h" 22 #include "content/public/browser/web_ui.h"
23 #include "content/public/browser/web_ui_data_source.h" 23 #include "content/public/browser/web_ui_data_source.h"
24 #include "content/public/common/url_constants.h" 24 #include "content/public/common/url_constants.h"
25 #include "grit/content_resources.h" 25 #include "grit/content_resources.h"
26 #include "third_party/WebKit/public/platform/WebString.h"
27 #include "third_party/zlib/google/zip.h" 26 #include "third_party/zlib/google/zip.h"
28 #include "webkit/common/database/database_identifier.h" 27 #include "webkit/common/database/database_identifier.h"
29 28
30 namespace content { 29 namespace content {
31 30
32 IndexedDBInternalsUI::IndexedDBInternalsUI(WebUI* web_ui) 31 IndexedDBInternalsUI::IndexedDBInternalsUI(WebUI* web_ui)
33 : WebUIController(web_ui) { 32 : WebUIController(web_ui) {
34 web_ui->RegisterMessageCallback( 33 web_ui->RegisterMessageCallback(
35 "getAllOrigins", 34 "getAllOrigins",
36 base::Bind(&IndexedDBInternalsUI::GetAllOrigins, base::Unretained(this))); 35 base::Bind(&IndexedDBInternalsUI::GetAllOrigins, base::Unretained(this)));
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 return; 283 return;
285 } 284 }
286 285
287 item->AddObserver(new FileDeleter(temp_path)); 286 item->AddObserver(new FileDeleter(temp_path));
288 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady", 287 web_ui()->CallJavascriptFunction("indexeddb.onOriginDownloadReady",
289 base::StringValue(partition_path.value()), 288 base::StringValue(partition_path.value()),
290 base::StringValue(origin_url.spec())); 289 base::StringValue(origin_url.spec()));
291 } 290 }
292 291
293 } // namespace content 292 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/indexed_db/webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698