OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/plugin_service.h" | 5 #include "content/browser/plugin_service.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | |
19 #include "content/browser/browser_thread.h" | 18 #include "content/browser/browser_thread.h" |
20 #include "content/browser/content_browser_client.h" | 19 #include "content/browser/content_browser_client.h" |
21 #include "content/browser/ppapi_plugin_process_host.h" | 20 #include "content/browser/ppapi_plugin_process_host.h" |
22 #include "content/browser/renderer_host/render_process_host.h" | 21 #include "content/browser/renderer_host/render_process_host.h" |
23 #include "content/browser/renderer_host/render_view_host.h" | 22 #include "content/browser/renderer_host/render_view_host.h" |
24 #include "content/browser/resource_context.h" | 23 #include "content/browser/resource_context.h" |
| 24 #include "content/common/content_switches.h" |
25 #include "content/common/notification_service.h" | 25 #include "content/common/notification_service.h" |
26 #include "content/common/notification_type.h" | 26 #include "content/common/notification_type.h" |
27 #include "content/common/pepper_plugin_registry.h" | 27 #include "content/common/pepper_plugin_registry.h" |
28 #include "content/common/plugin_messages.h" | 28 #include "content/common/plugin_messages.h" |
29 #include "content/common/view_messages.h" | 29 #include "content/common/view_messages.h" |
30 #include "webkit/plugins/npapi/plugin_constants_win.h" | 30 #include "webkit/plugins/npapi/plugin_constants_win.h" |
31 #include "webkit/plugins/npapi/plugin_list.h" | 31 #include "webkit/plugins/npapi/plugin_list.h" |
32 #include "webkit/plugins/npapi/webplugininfo.h" | 32 #include "webkit/plugins/npapi/webplugininfo.h" |
33 | 33 |
34 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 496 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
497 // static | 497 // static |
498 void PluginService::RegisterFilePathWatcher( | 498 void PluginService::RegisterFilePathWatcher( |
499 FilePathWatcher *watcher, | 499 FilePathWatcher *watcher, |
500 const FilePath& path, | 500 const FilePath& path, |
501 FilePathWatcher::Delegate* delegate) { | 501 FilePathWatcher::Delegate* delegate) { |
502 bool result = watcher->Watch(path, delegate); | 502 bool result = watcher->Watch(path, delegate); |
503 DCHECK(result); | 503 DCHECK(result); |
504 } | 504 } |
505 #endif | 505 #endif |
OLD | NEW |