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

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

Issue 2149323003: Change the way that gzipped resources are loaded from resources.pak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 4 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
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/media/media_internals_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 base::Unretained(this))); 61 base::Unretained(this)));
62 62
63 WebUIDataSource* source = 63 WebUIDataSource* source =
64 WebUIDataSource::Create(kChromeUIIndexedDBInternalsHost); 64 WebUIDataSource::Create(kChromeUIIndexedDBInternalsHost);
65 source->SetJsonPath("strings.js"); 65 source->SetJsonPath("strings.js");
66 source->AddResourcePath("indexeddb_internals.js", 66 source->AddResourcePath("indexeddb_internals.js",
67 IDR_INDEXED_DB_INTERNALS_JS); 67 IDR_INDEXED_DB_INTERNALS_JS);
68 source->AddResourcePath("indexeddb_internals.css", 68 source->AddResourcePath("indexeddb_internals.css",
69 IDR_INDEXED_DB_INTERNALS_CSS); 69 IDR_INDEXED_DB_INTERNALS_CSS);
70 source->SetDefaultResource(IDR_INDEXED_DB_INTERNALS_HTML); 70 source->SetDefaultResource(IDR_INDEXED_DB_INTERNALS_HTML);
71 source->DisableI18nAndUseGzipForAllPaths();
71 72
72 BrowserContext* browser_context = 73 BrowserContext* browser_context =
73 web_ui->GetWebContents()->GetBrowserContext(); 74 web_ui->GetWebContents()->GetBrowserContext();
74 WebUIDataSource::Add(browser_context, source); 75 WebUIDataSource::Add(browser_context, source);
75 } 76 }
76 77
77 IndexedDBInternalsUI::~IndexedDBInternalsUI() {} 78 IndexedDBInternalsUI::~IndexedDBInternalsUI() {}
78 79
79 void IndexedDBInternalsUI::AddContextFromStoragePartition( 80 void IndexedDBInternalsUI::AddContextFromStoragePartition(
80 StoragePartition* partition) { 81 StoragePartition* partition) {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 359
359 item->AddObserver(new FileDeleter(temp_path)); 360 item->AddObserver(new FileDeleter(temp_path));
360 web_ui()->CallJavascriptFunctionUnsafe( 361 web_ui()->CallJavascriptFunctionUnsafe(
361 "indexeddb.onOriginDownloadReady", 362 "indexeddb.onOriginDownloadReady",
362 base::StringValue(partition_path.value()), 363 base::StringValue(partition_path.value()),
363 base::StringValue(origin.Serialize()), 364 base::StringValue(origin.Serialize()),
364 base::FundamentalValue(static_cast<double>(connection_count))); 365 base::FundamentalValue(static_cast<double>(connection_count)));
365 } 366 }
366 367
367 } // namespace content 368 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/media/media_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698