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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 <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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 273 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
274 const GURL url = GURL(FILE_PATH_LITERAL("file://") + zip_path.value()); 274 const GURL url = GURL(FILE_PATH_LITERAL("file://") + zip_path.value());
275 BrowserContext* browser_context = 275 BrowserContext* browser_context =
276 web_ui()->GetWebContents()->GetBrowserContext(); 276 web_ui()->GetWebContents()->GetBrowserContext();
277 scoped_ptr<DownloadUrlParameters> dl_params( 277 scoped_ptr<DownloadUrlParameters> dl_params(
278 DownloadUrlParameters::FromWebContents(web_ui()->GetWebContents(), url)); 278 DownloadUrlParameters::FromWebContents(web_ui()->GetWebContents(), url));
279 DownloadManager* dlm = BrowserContext::GetDownloadManager(browser_context); 279 DownloadManager* dlm = BrowserContext::GetDownloadManager(browser_context);
280 280
281 const GURL referrer(web_ui()->GetWebContents()->GetLastCommittedURL()); 281 const GURL referrer(web_ui()->GetWebContents()->GetLastCommittedURL());
282 dl_params->set_referrer( 282 dl_params->set_referrer(
283 content::Referrer(referrer, WebKit::WebReferrerPolicyDefault)); 283 content::Referrer(referrer, blink::WebReferrerPolicyDefault));
284 284
285 // This is how to watch for the download to finish: first wait for it 285 // This is how to watch for the download to finish: first wait for it
286 // to start, then attach a DownloadItem::Observer to observe the 286 // to start, then attach a DownloadItem::Observer to observe the
287 // state change to the finished state. 287 // state change to the finished state.
288 dl_params->set_callback(base::Bind(&IndexedDBInternalsUI::OnDownloadStarted, 288 dl_params->set_callback(base::Bind(&IndexedDBInternalsUI::OnDownloadStarted,
289 base::Unretained(this), 289 base::Unretained(this),
290 partition_path, 290 partition_path,
291 origin_url, 291 origin_url,
292 temp_path, 292 temp_path,
293 connection_count)); 293 connection_count));
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 348
349 item->AddObserver(new FileDeleter(temp_path)); 349 item->AddObserver(new FileDeleter(temp_path));
350 web_ui()->CallJavascriptFunction( 350 web_ui()->CallJavascriptFunction(
351 "indexeddb.onOriginDownloadReady", 351 "indexeddb.onOriginDownloadReady",
352 base::StringValue(partition_path.value()), 352 base::StringValue(partition_path.value()),
353 base::StringValue(origin_url.spec()), 353 base::StringValue(origin_url.spec()),
354 base::FundamentalValue(double(connection_count))); 354 base::FundamentalValue(double(connection_count)));
355 } 355 }
356 356
357 } // namespace content 357 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | content/browser/indexed_db/indexed_db_leveldb_coding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698