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

Side by Side Diff: chrome/browser/devtools/devtools_file_helper.cc

Issue 11618049: Cleanup: Remove unneeded browser_thread.h includes in contents. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 8 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/devtools/devtools_file_helper.h" 5 #include "chrome/browser/devtools/devtools_file_helper.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/md5.h" 13 #include "base/md5.h"
14 #include "base/value_conversions.h" 14 #include "base/value_conversions.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/download/download_prefs.h" 16 #include "chrome/browser/download/download_prefs.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/prefs/scoped_user_pref_update.h" 18 #include "chrome/browser/prefs/scoped_user_pref_update.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/ui/chrome_select_file_policy.h" 20 #include "chrome/browser/ui/chrome_select_file_policy.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "content/public/browser/browser_context.h" 22 #include "content/public/browser/browser_context.h"
23 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/download_manager.h" 24 #include "content/public/browser/download_manager.h"
24 #include "ui/base/dialogs/select_file_dialog.h" 25 #include "ui/base/dialogs/select_file_dialog.h"
25 26
26 using content::BrowserContext; 27 using content::BrowserContext;
27 using content::BrowserThread; 28 using content::BrowserThread;
28 using content::DownloadManager; 29 using content::DownloadManager;
29 30
30 namespace { 31 namespace {
31 32
32 base::LazyInstance<FilePath>::Leaky 33 base::LazyInstance<FilePath>::Leaky
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 files_map->SetWithoutPathExpansion(base::MD5String(url), 191 files_map->SetWithoutPathExpansion(base::MD5String(url),
191 base::CreateFilePathValue(path)); 192 base::CreateFilePathValue(path));
192 delegate_->FileSavedAs(url); 193 delegate_->FileSavedAs(url);
193 194
194 BrowserThread::PostTask( 195 BrowserThread::PostTask(
195 BrowserThread::FILE, FROM_HERE, 196 BrowserThread::FILE, FROM_HERE,
196 base::Bind(&DevToolsFileHelper::WriteFile, 197 base::Bind(&DevToolsFileHelper::WriteFile,
197 path, 198 path,
198 content)); 199 content));
199 } 200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698