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

Side by Side Diff: chrome/browser/guestview/webview/plugin_permission_helper.cc

Issue 175053004: <webview>: Report a better message if plugin not loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 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/guestview/webview/plugin_permission_helper.h" 5 #include "chrome/browser/guestview/webview/plugin_permission_helper.h"
6 6
7 #include "chrome/browser/guestview/webview/webview_guest.h" 7 #include "chrome/browser/guestview/webview/webview_guest.h"
8 #include "chrome/browser/guestview/webview/webview_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"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void PluginPermissionHelper::OnNPAPINotSupported(const std::string& id) { 86 void PluginPermissionHelper::OnNPAPINotSupported(const std::string& id) {
87 } 87 }
88 88
89 void PluginPermissionHelper::OnOpenAboutPlugins() { 89 void PluginPermissionHelper::OnOpenAboutPlugins() {
90 } 90 }
91 91
92 #if defined(ENABLE_PLUGIN_INSTALLATION) 92 #if defined(ENABLE_PLUGIN_INSTALLATION)
93 void PluginPermissionHelper::OnFindMissingPlugin(int placeholder_id, 93 void PluginPermissionHelper::OnFindMissingPlugin(int placeholder_id,
94 const std::string& mime_type) { 94 const std::string& mime_type) {
95 Send(new ChromeViewMsg_DidNotFindMissingPlugin(placeholder_id));
95 } 96 }
96 97
97 void PluginPermissionHelper::OnRemovePluginPlaceholderHost(int placeholder_id) { 98 void PluginPermissionHelper::OnRemovePluginPlaceholderHost(int placeholder_id) {
98 } 99 }
99 #endif // defined(ENABLE_PLUGIN_INSTALLATION) 100 #endif // defined(ENABLE_PLUGIN_INSTALLATION)
100 101
101 void PluginPermissionHelper::OnPermissionResponse(const std::string& identifier, 102 void PluginPermissionHelper::OnPermissionResponse(const std::string& identifier,
102 bool allow, 103 bool allow,
103 const std::string& input) { 104 const std::string& input) {
104 if (allow) { 105 if (allow) {
105 ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins( 106 ChromePluginServiceFilter::GetInstance()->AuthorizeAllPlugins(
106 web_contents(), true, identifier); 107 web_contents(), true, identifier);
107 } 108 }
108 } 109 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698