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

Side by Side Diff: content/browser/plugin_service_stub.cc

Issue 11507017: Add PluginServiceStub for builds with enable_plugins==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/plugin_service_stub.h"
6
7 #include "base/file_path.h"
8
9 namespace content {
10
11 // static
12 PluginService* PluginService::GetInstance() {
13 return PluginServiceStub::GetInstance();
14 }
15
16 // static
17 PluginServiceStub* PluginServiceStub::GetInstance() {
18 return Singleton<PluginServiceStub>::get();
19 }
20
21 void PluginService::PurgePluginListCache(BrowserContext* browser_context,
22 bool reload_pages) {
23 }
24
25 PluginServiceStub::PluginServiceStub() {}
26
27 PluginServiceStub::~PluginServiceStub() {
28 }
29
30 bool PluginServiceStub::GetPluginInfoArray(
31 const GURL& url,
32 const std::string& mime_type,
33 bool allow_wildcard,
34 std::vector<webkit::WebPluginInfo>* plugins,
35 std::vector<std::string>* actual_mime_types) {
36 return false;
37 }
38
39 bool PluginServiceStub::GetPluginInfo(int render_process_id,
40 int render_view_id,
41 ResourceContext* context,
42 const GURL& url,
43 const GURL& page_url,
44 const std::string& mime_type,
45 bool allow_wildcard,
46 bool* is_stale,
47 webkit::WebPluginInfo* info,
48 std::string* actual_mime_type) {
49 return false;
50 }
51
52 bool PluginServiceStub::GetPluginInfoByPath(const FilePath& plugin_path,
53 webkit::WebPluginInfo* info) {
54 return false;
55 }
56
57 string16 PluginServiceStub::GetPluginDisplayNameByPath(const FilePath& path) {
58 return path.LossyDisplayName();
59 }
60
61 PepperPluginInfo* PluginServiceStub::GetRegisteredPpapiPluginInfo(
62 const FilePath& plugin_path) {
63 return NULL;
64 }
65
66 PluginServiceFilter* PluginServiceStub::GetFilter() {
67 return NULL;
68 }
69
70 bool PluginServiceStub::IsPluginUnstable(const FilePath& path) {
71 return false;
72 }
73
74 webkit::npapi::PluginList* PluginServiceStub::GetPluginList() {
75 return NULL;
76 }
77
78 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/plugin_service_stub.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698