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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc

Issue 2626843006: Plugins: Remove left over references to chrome://plugins (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chrome_web_view_permission_helper_d elegate.h" 5 #include "chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_d elegate.h"
6 6
7 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 7 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
8 #include "chrome/browser/permissions/permission_manager.h" 8 #include "chrome/browser/permissions/permission_manager.h"
9 #include "chrome/browser/permissions/permission_request_id.h" 9 #include "chrome/browser/permissions/permission_request_id.h"
10 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" 10 #include "chrome/browser/plugins/chrome_plugin_service_filter.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 IPC_END_MESSAGE_MAP() 53 IPC_END_MESSAGE_MAP()
54 54
55 return true; 55 return true;
56 } 56 }
57 57
58 bool ChromeWebViewPermissionHelperDelegate::OnMessageReceived( 58 bool ChromeWebViewPermissionHelperDelegate::OnMessageReceived(
59 const IPC::Message& message) { 59 const IPC::Message& message) {
60 IPC_BEGIN_MESSAGE_MAP(ChromeWebViewPermissionHelperDelegate, message) 60 IPC_BEGIN_MESSAGE_MAP(ChromeWebViewPermissionHelperDelegate, message)
61 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CouldNotLoadPlugin, 61 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CouldNotLoadPlugin,
62 OnCouldNotLoadPlugin) 62 OnCouldNotLoadPlugin)
63 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_OpenAboutPlugins,
64 OnOpenAboutPlugins)
65 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 63 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
66 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_RemovePluginPlaceholderHost, 64 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_RemovePluginPlaceholderHost,
67 OnRemovePluginPlaceholderHost) 65 OnRemovePluginPlaceholderHost)
68 #endif 66 #endif
69 IPC_MESSAGE_UNHANDLED(return false) 67 IPC_MESSAGE_UNHANDLED(return false)
70 IPC_END_MESSAGE_MAP() 68 IPC_END_MESSAGE_MAP()
71 69
72 return true; 70 return true;
73 } 71 }
74 72
(...skipping 19 matching lines...) Expand all
94 92
95 void ChromeWebViewPermissionHelperDelegate::OnCouldNotLoadPlugin( 93 void ChromeWebViewPermissionHelperDelegate::OnCouldNotLoadPlugin(
96 const base::FilePath& plugin_path) { 94 const base::FilePath& plugin_path) {
97 } 95 }
98 96
99 void ChromeWebViewPermissionHelperDelegate::OnBlockedOutdatedPlugin( 97 void ChromeWebViewPermissionHelperDelegate::OnBlockedOutdatedPlugin(
100 int placeholder_id, 98 int placeholder_id,
101 const std::string& identifier) { 99 const std::string& identifier) {
102 } 100 }
103 101
104 void ChromeWebViewPermissionHelperDelegate::OnOpenAboutPlugins() {
105 }
106
107 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 102 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
108 void ChromeWebViewPermissionHelperDelegate::OnRemovePluginPlaceholderHost( 103 void ChromeWebViewPermissionHelperDelegate::OnRemovePluginPlaceholderHost(
109 int placeholder_id) { 104 int placeholder_id) {
110 } 105 }
111 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) 106 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
112 107
113 void ChromeWebViewPermissionHelperDelegate::OnPermissionResponse( 108 void ChromeWebViewPermissionHelperDelegate::OnPermissionResponse(
114 const std::string& identifier, 109 const std::string& identifier,
115 bool allow, 110 bool allow,
116 const std::string& input) { 111 const std::string& input) {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 IPC::Message* reply_msg, 330 IPC::Message* reply_msg,
336 bool allowed) { 331 bool allowed) {
337 TabSpecificContentSettings::FileSystemAccessed( 332 TabSpecificContentSettings::FileSystemAccessed(
338 render_process_id, render_frame_id, url, !allowed); 333 render_process_id, render_frame_id, url, !allowed);
339 ChromeViewHostMsg_RequestFileSystemAccessSync::WriteReplyParams(reply_msg, 334 ChromeViewHostMsg_RequestFileSystemAccessSync::WriteReplyParams(reply_msg,
340 allowed); 335 allowed);
341 Send(reply_msg); 336 Send(reply_msg);
342 } 337 }
343 338
344 } // namespace extensions 339 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698