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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_util.cc

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "chrome/common/chrome_switches.h" 42 #include "chrome/common/chrome_switches.h"
43 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle r.h" 43 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle r.h"
44 #include "chrome/common/url_constants.h" 44 #include "chrome/common/url_constants.h"
45 #include "chromeos/chromeos_switches.h" 45 #include "chromeos/chromeos_switches.h"
46 #include "content/public/browser/browser_thread.h" 46 #include "content/public/browser/browser_thread.h"
47 #include "content/public/browser/plugin_service.h" 47 #include "content/public/browser/plugin_service.h"
48 #include "content/public/browser/storage_partition.h" 48 #include "content/public/browser/storage_partition.h"
49 #include "content/public/browser/user_metrics.h" 49 #include "content/public/browser/user_metrics.h"
50 #include "content/public/browser/web_contents.h" 50 #include "content/public/browser/web_contents.h"
51 #include "content/public/common/pepper_plugin_info.h" 51 #include "content/public/common/pepper_plugin_info.h"
52 #include "content/public/common/webplugininfo.h"
52 #include "grit/generated_resources.h" 53 #include "grit/generated_resources.h"
53 #include "net/base/escape.h" 54 #include "net/base/escape.h"
54 #include "net/base/mime_util.h" 55 #include "net/base/mime_util.h"
55 #include "net/base/net_util.h" 56 #include "net/base/net_util.h"
56 #include "ui/base/l10n/l10n_util.h" 57 #include "ui/base/l10n/l10n_util.h"
57 #include "ui/gfx/screen.h" 58 #include "ui/gfx/screen.h"
58 #include "webkit/browser/fileapi/file_system_backend.h" 59 #include "webkit/browser/fileapi/file_system_backend.h"
59 #include "webkit/browser/fileapi/file_system_context.h" 60 #include "webkit/browser/fileapi/file_system_context.h"
60 #include "webkit/browser/fileapi/file_system_operation_runner.h" 61 #include "webkit/browser/fileapi/file_system_operation_runner.h"
61 #include "webkit/browser/fileapi/file_system_url.h" 62 #include "webkit/browser/fileapi/file_system_url.h"
62 #include "webkit/common/fileapi/file_system_util.h" 63 #include "webkit/common/fileapi/file_system_util.h"
63 #include "webkit/plugins/webplugininfo.h"
64 64
65 using base::DictionaryValue; 65 using base::DictionaryValue;
66 using base::ListValue; 66 using base::ListValue;
67 using content::BrowserContext; 67 using content::BrowserContext;
68 using content::BrowserThread; 68 using content::BrowserThread;
69 using content::PluginService; 69 using content::PluginService;
70 using content::UserMetricsAction; 70 using content::UserMetricsAction;
71 using extensions::app_file_handler_util::FindFileHandlersForFiles; 71 using extensions::app_file_handler_util::FindFileHandlersForFiles;
72 using extensions::app_file_handler_util::PathAndMimeTypeSet; 72 using extensions::app_file_handler_util::PathAndMimeTypeSet;
73 using extensions::Extension; 73 using extensions::Extension;
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 // If the file doesn't have an extension or its mime-type cannot be 855 // If the file doesn't have an extension or its mime-type cannot be
856 // determined, then indicate that it has the empty mime-type. This will 856 // determined, then indicate that it has the empty mime-type. This will
857 // only be matched if the Web Intents accepts "*" or "*/*". 857 // only be matched if the Web Intents accepts "*" or "*/*".
858 return ""; 858 return "";
859 } else { 859 } else {
860 return mime_type; 860 return mime_type;
861 } 861 }
862 } 862 }
863 863
864 } // namespace file_manager_util 864 } // namespace file_manager_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698