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 "chrome/browser/chrome_plugin_message_filter.h" | 5 #include "chrome/browser/chrome_plugin_message_filter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/infobars/infobar_tab_helper.h" | 9 #include "chrome/browser/infobars/infobar_tab_helper.h" |
10 #include "chrome/browser/plugin_download_helper.h" | 10 #include "chrome/browser/plugin_download_helper.h" |
11 #include "chrome/browser/plugin_installer_infobar_delegate.h" | 11 #include "chrome/browser/plugin_installer_infobar_delegate.h" |
12 #include "chrome/browser/plugin_observer.h" | 12 #include "chrome/browser/plugin_observer.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
15 #include "chrome/common/chrome_plugin_messages.h" | 15 #include "chrome/common/chrome_plugin_messages.h" |
16 #include "content/browser/plugin_process_host.h" | 16 #include "content/browser/plugin_process_host.h" |
17 #include "content/browser/renderer_host/render_process_host.h" | 17 #include "content/browser/renderer_host/render_process_host.h" |
18 #include "content/browser/renderer_host/render_view_host.h" | 18 #include "content/browser/renderer_host/render_view_host.h" |
19 #include "content/browser/renderer_host/render_view_host_delegate.h" | 19 #include "content/browser/renderer_host/render_view_host_delegate.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "net/url_request/url_request_context_getter.h" | 21 #include "net/url_request/url_request_context_getter.h" |
22 #include "webkit/plugins/npapi/default_plugin_shared.h" | 22 #include "webkit/plugins/npapi/default_plugin_shared.h" |
23 | 23 |
| 24 using content::BrowserThread; |
| 25 |
24 static const char kDefaultPluginFinderURL[] = | 26 static const char kDefaultPluginFinderURL[] = |
25 "https://dl-ssl.google.com/edgedl/chrome/plugins/plugins2.xml"; | 27 "https://dl-ssl.google.com/edgedl/chrome/plugins/plugins2.xml"; |
26 | 28 |
27 ChromePluginMessageFilter::ChromePluginMessageFilter(PluginProcessHost* process) | 29 ChromePluginMessageFilter::ChromePluginMessageFilter(PluginProcessHost* process) |
28 : process_(process) { | 30 : process_(process) { |
29 } | 31 } |
30 | 32 |
31 ChromePluginMessageFilter::~ChromePluginMessageFilter() { | 33 ChromePluginMessageFilter::~ChromePluginMessageFilter() { |
32 } | 34 } |
33 | 35 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 return; | 146 return; |
145 } | 147 } |
146 } | 148 } |
147 #else | 149 #else |
148 // TODO(port): Implement the infobar that accompanies the default plugin. | 150 // TODO(port): Implement the infobar that accompanies the default plugin. |
149 // Linux: http://crbug.com/10952 | 151 // Linux: http://crbug.com/10952 |
150 // Mac: http://crbug.com/17392 | 152 // Mac: http://crbug.com/17392 |
151 NOTIMPLEMENTED(); | 153 NOTIMPLEMENTED(); |
152 #endif // OS_WIN | 154 #endif // OS_WIN |
153 } | 155 } |
OLD | NEW |