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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_util.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 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" 4 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h"
5 5
6 #include "ash/shell.h" 6 #include "ash/shell.h"
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "content/public/common/pepper_plugin_info.h" 49 #include "content/public/common/pepper_plugin_info.h"
50 #include "grit/generated_resources.h" 50 #include "grit/generated_resources.h"
51 #include "net/base/escape.h" 51 #include "net/base/escape.h"
52 #include "net/base/net_util.h" 52 #include "net/base/net_util.h"
53 #include "ui/base/l10n/l10n_util.h" 53 #include "ui/base/l10n/l10n_util.h"
54 #include "ui/gfx/screen.h" 54 #include "ui/gfx/screen.h"
55 #include "webkit/browser/fileapi/file_system_context.h" 55 #include "webkit/browser/fileapi/file_system_context.h"
56 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" 56 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
57 #include "webkit/browser/fileapi/file_system_operation.h" 57 #include "webkit/browser/fileapi/file_system_operation.h"
58 #include "webkit/browser/fileapi/file_system_url.h" 58 #include "webkit/browser/fileapi/file_system_url.h"
59 #include "webkit/fileapi/file_system_util.h" 59 #include "webkit/common/fileapi/file_system_util.h"
60 #include "webkit/plugins/webplugininfo.h" 60 #include "webkit/plugins/webplugininfo.h"
61 61
62 using base::DictionaryValue; 62 using base::DictionaryValue;
63 using base::ListValue; 63 using base::ListValue;
64 using content::BrowserContext; 64 using content::BrowserContext;
65 using content::BrowserThread; 65 using content::BrowserThread;
66 using content::PluginService; 66 using content::PluginService;
67 using content::UserMetricsAction; 67 using content::UserMetricsAction;
68 using extensions::Extension; 68 using extensions::Extension;
69 using file_handler_util::FileTaskExecutor; 69 using file_handler_util::FileTaskExecutor;
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 // If a bundled plugin is enabled, we should open pdf/swf files in a tab. 879 // If a bundled plugin is enabled, we should open pdf/swf files in a tab.
880 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) { 880 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension) {
881 if (LowerCaseEqualsASCII(file_extension, kPdfExtension)) 881 if (LowerCaseEqualsASCII(file_extension, kPdfExtension))
882 return IsPdfPluginEnabled(profile); 882 return IsPdfPluginEnabled(profile);
883 if (LowerCaseEqualsASCII(file_extension, kSwfExtension)) 883 if (LowerCaseEqualsASCII(file_extension, kSwfExtension))
884 return IsFlashPluginEnabled(profile); 884 return IsFlashPluginEnabled(profile);
885 return false; 885 return false;
886 } 886 }
887 887
888 } // namespace file_manager_util 888 } // namespace file_manager_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698