| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/guest_view/web_view/plugin_permission_helper.h" | 5 #include "chrome/browser/guestview/webview/plugin_permission_helper.h" |
| 6 | 6 |
| 7 #include "chrome/browser/guest_view/web_view/web_view_guest.h" | 7 #include "chrome/browser/guestview/webview/webview_guest.h" |
| 8 #include "chrome/browser/guest_view/web_view/web_view_permission_types.h" | 8 #include "chrome/browser/guestview/webview/webview_permission_types.h" |
| 9 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 9 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| 11 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
| 12 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
| 13 #include "content/public/browser/user_metrics.h" | 13 #include "content/public/browser/user_metrics.h" |
| 14 | 14 |
| 15 using content::BrowserPluginGuestDelegate; | 15 using content::BrowserPluginGuestDelegate; |
| 16 using content::RenderViewHost; | 16 using content::RenderViewHost; |
| 17 using content::WebContents; | 17 using content::WebContents; |
| 18 | 18 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #endif // defined(ENABLE_PLUGIN_INSTALLATION) | 100 #endif // defined(ENABLE_PLUGIN_INSTALLATION) |
| 101 | 101 |
| 102 void PluginPermissionHelper::OnPermissionResponse(const std::string& identifier, | 102 void PluginPermissionHelper::OnPermissionResponse(const std::string& identifier, |
| 103 bool allow, | 103 bool allow, |
| 104 const std::string& input) { | 104 const std::string& input) { |
| 105 if (allow) { | 105 if (allow) { |
| 106 ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins( | 106 ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins( |
| 107 web_contents(), true, identifier); | 107 web_contents(), true, identifier); |
| 108 } | 108 } |
| 109 } | 109 } |
| OLD | NEW |