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

Side by Side Diff: content/browser/renderer_host/pepper/browser_ppapi_host_impl.h

Issue 525513003: Cleanup: Put more plugin code behind the ENABLE_PLUGINS ifdef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto ry.h" 16 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto ry.h"
17 #include "content/browser/renderer_host/pepper/ssl_context_helper.h" 17 #include "content/browser/renderer_host/pepper/ssl_context_helper.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 #include "content/common/pepper_renderer_instance_data.h" 19 #include "content/common/pepper_renderer_instance_data.h"
20 #include "content/public/browser/browser_ppapi_host.h" 20 #include "content/public/browser/browser_ppapi_host.h"
21 #include "content/public/common/process_type.h" 21 #include "content/public/common/process_type.h"
22 #include "ipc/message_filter.h" 22 #include "ipc/message_filter.h"
23 #include "ppapi/host/ppapi_host.h" 23 #include "ppapi/host/ppapi_host.h"
24 24
25 #if !defined(ENABLE_PLUGINS)
26 #error "Plugins should be enabled"
27 #endif
28
25 namespace content { 29 namespace content {
26 30
27 class CONTENT_EXPORT BrowserPpapiHostImpl : public BrowserPpapiHost { 31 class CONTENT_EXPORT BrowserPpapiHostImpl : public BrowserPpapiHost {
28 public: 32 public:
29 // The creator is responsible for calling set_plugin_process_handle as soon 33 // The creator is responsible for calling set_plugin_process_handle as soon
30 // as it is known (we start the process asynchronously so it won't be known 34 // as it is known (we start the process asynchronously so it won't be known
31 // when this object is created). 35 // when this object is created).
32 // |external_plugin| signfies that this is a proxy created for an embedder's 36 // |external_plugin| signfies that this is a proxy created for an embedder's
33 // plugin, i.e. using BrowserPpapiHost::CreateExternalPluginProcess. 37 // plugin, i.e. using BrowserPpapiHost::CreateExternalPluginProcess.
34 BrowserPpapiHostImpl(IPC::Sender* sender, 38 BrowserPpapiHostImpl(IPC::Sender* sender,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 scoped_refptr<HostMessageFilter> message_filter_; 134 scoped_refptr<HostMessageFilter> message_filter_;
131 135
132 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; 136 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_;
133 137
134 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); 138 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl);
135 }; 139 };
136 140
137 } // namespace content 141 } // namespace content
138 142
139 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ 143 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.h ('k') | content/browser/renderer_host/render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698