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

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

Issue 15658004: Split FileAPI code for common|common_child|renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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) 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"
(...skipping 15 matching lines...) Expand all
26 #include "content/public/browser/download_manager.h" 26 #include "content/public/browser/download_manager.h"
27 #include "content/public/browser/render_process_host.h" 27 #include "content/public/browser/render_process_host.h"
28 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
29 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
30 #include "content/public/common/content_client.h" 30 #include "content/public/common/content_client.h"
31 #include "content/public/common/url_constants.h" 31 #include "content/public/common/url_constants.h"
32 #include "grit/generated_resources.h" 32 #include "grit/generated_resources.h"
33 #include "ui/base/l10n/l10n_util.h" 33 #include "ui/base/l10n/l10n_util.h"
34 #include "ui/shell_dialogs/select_file_dialog.h" 34 #include "ui/shell_dialogs/select_file_dialog.h"
35 #include "webkit/browser/fileapi/isolated_context.h" 35 #include "webkit/browser/fileapi/isolated_context.h"
36 #include "webkit/fileapi/file_system_util.h" 36 #include "webkit/common/fileapi/file_system_util.h"
37 37
38 using base::Bind; 38 using base::Bind;
39 using base::Callback; 39 using base::Callback;
40 using content::BrowserContext; 40 using content::BrowserContext;
41 using content::BrowserThread; 41 using content::BrowserThread;
42 using content::DownloadManager; 42 using content::DownloadManager;
43 using content::RenderViewHost; 43 using content::RenderViewHost;
44 using content::WebContents; 44 using content::WebContents;
45 45
46 namespace { 46 namespace {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void DevToolsFileHelper::RemoveFileSystem(const std::string& file_system_path) { 353 void DevToolsFileHelper::RemoveFileSystem(const std::string& file_system_path) {
354 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 354 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
355 base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path); 355 base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path);
356 isolated_context()->RevokeFileSystemByPath(path); 356 isolated_context()->RevokeFileSystemByPath(path);
357 357
358 DictionaryPrefUpdate update(profile_->GetPrefs(), 358 DictionaryPrefUpdate update(profile_->GetPrefs(),
359 prefs::kDevToolsFileSystemPaths); 359 prefs::kDevToolsFileSystemPaths);
360 DictionaryValue* file_systems_paths_value = update.Get(); 360 DictionaryValue* file_systems_paths_value = update.Get();
361 file_systems_paths_value->RemoveWithoutPathExpansion(file_system_path, NULL); 361 file_systems_paths_value->RemoveWithoutPathExpansion(file_system_path, NULL);
362 } 362 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698