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

Side by Side Diff: content/test/fake_plugin_service.cc

Issue 645203002: Block NPAPI plugins by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move UMA outside ifdef Created 5 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
« no previous file with comments | « content/test/fake_plugin_service.h ('k') | content/test/plugin/plugin_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/test/fake_plugin_service.h" 5 #include "content/test/fake_plugin_service.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 FakePluginService::FakePluginService() { 9 FakePluginService::FakePluginService() {
10 } 10 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 void FakePluginService::GetInternalPlugins( 96 void FakePluginService::GetInternalPlugins(
97 std::vector<WebPluginInfo>* plugins) { 97 std::vector<WebPluginInfo>* plugins) {
98 } 98 }
99 99
100 bool FakePluginService::NPAPIPluginsSupported() { 100 bool FakePluginService::NPAPIPluginsSupported() {
101 return false; 101 return false;
102 } 102 }
103 103
104 void FakePluginService::EnableNpapiPluginsForTesting() {
105 }
106
104 void FakePluginService::DisablePluginsDiscoveryForTesting() { 107 void FakePluginService::DisablePluginsDiscoveryForTesting() {
105 } 108 }
106 109
107 #if defined(OS_MACOSX) 110 #if defined(OS_MACOSX)
108 void FakePluginService::AppActivated() { 111 void FakePluginService::AppActivated() {
109 } 112 }
110 #elif defined(OS_WIN) 113 #elif defined(OS_WIN)
111 bool FakePluginService::GetPluginInfoFromWindow( 114 bool FakePluginService::GetPluginInfoFromWindow(
112 HWND window, 115 HWND window,
113 base::string16* plugin_name, 116 base::string16* plugin_name,
114 base::string16* plugin_version) { 117 base::string16* plugin_version) {
115 return false; 118 return false;
116 } 119 }
117 #endif 120 #endif
118 121
119 bool FakePluginService::PpapiDevChannelSupported( 122 bool FakePluginService::PpapiDevChannelSupported(
120 BrowserContext* browser_context, 123 BrowserContext* browser_context,
121 const GURL& document_url) { 124 const GURL& document_url) {
122 return false; 125 return false;
123 } 126 }
124 127
125 } // namespace content 128 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_plugin_service.h ('k') | content/test/plugin/plugin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698