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

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

Issue 599653003: Remove old template html boilerplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bydefault
Patch Set: fix android Created 6 years, 2 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
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 <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 26 matching lines...) Expand all
37 "downloadOriginData", 37 "downloadOriginData",
38 base::Bind(&IndexedDBInternalsUI::DownloadOriginData, 38 base::Bind(&IndexedDBInternalsUI::DownloadOriginData,
39 base::Unretained(this))); 39 base::Unretained(this)));
40 web_ui->RegisterMessageCallback( 40 web_ui->RegisterMessageCallback(
41 "forceClose", 41 "forceClose",
42 base::Bind(&IndexedDBInternalsUI::ForceCloseOrigin, 42 base::Bind(&IndexedDBInternalsUI::ForceCloseOrigin,
43 base::Unretained(this))); 43 base::Unretained(this)));
44 44
45 WebUIDataSource* source = 45 WebUIDataSource* source =
46 WebUIDataSource::Create(kChromeUIIndexedDBInternalsHost); 46 WebUIDataSource::Create(kChromeUIIndexedDBInternalsHost);
47 source->SetUseJsonJSFormatV2();
48 source->SetJsonPath("strings.js"); 47 source->SetJsonPath("strings.js");
49 source->AddResourcePath("indexeddb_internals.js", 48 source->AddResourcePath("indexeddb_internals.js",
50 IDR_INDEXED_DB_INTERNALS_JS); 49 IDR_INDEXED_DB_INTERNALS_JS);
51 source->AddResourcePath("indexeddb_internals.css", 50 source->AddResourcePath("indexeddb_internals.css",
52 IDR_INDEXED_DB_INTERNALS_CSS); 51 IDR_INDEXED_DB_INTERNALS_CSS);
53 source->SetDefaultResource(IDR_INDEXED_DB_INTERNALS_HTML); 52 source->SetDefaultResource(IDR_INDEXED_DB_INTERNALS_HTML);
54 53
55 BrowserContext* browser_context = 54 BrowserContext* browser_context =
56 web_ui->GetWebContents()->GetBrowserContext(); 55 web_ui->GetWebContents()->GetBrowserContext();
57 WebUIDataSource::Add(browser_context, source); 56 WebUIDataSource::Add(browser_context, source);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 355
357 item->AddObserver(new FileDeleter(temp_path)); 356 item->AddObserver(new FileDeleter(temp_path));
358 web_ui()->CallJavascriptFunction( 357 web_ui()->CallJavascriptFunction(
359 "indexeddb.onOriginDownloadReady", 358 "indexeddb.onOriginDownloadReady",
360 base::StringValue(partition_path.value()), 359 base::StringValue(partition_path.value()),
361 base::StringValue(origin_url.spec()), 360 base::StringValue(origin_url.spec()),
362 base::FundamentalValue(static_cast<double>(connection_count))); 361 base::FundamentalValue(static_cast<double>(connection_count)));
363 } 362 }
364 363
365 } // namespace content 364 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/accessibility_ui.cc ('k') | content/browser/resources/gpu/gpu_internals.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698