OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |