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 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/containers/scoped_ptr_hash_map.h" | 13 #include "base/containers/scoped_ptr_hash_map.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto
ry.h" | 20 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto
ry.h" |
21 #include "content/browser/renderer_host/pepper/ssl_context_helper.h" | 21 #include "content/browser/renderer_host/pepper/ssl_context_helper.h" |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/common/pepper_renderer_instance_data.h" | 23 #include "content/common/pepper_renderer_instance_data.h" |
24 #include "content/public/browser/browser_ppapi_host.h" | 24 #include "content/public/browser/browser_ppapi_host.h" |
25 #include "content/public/common/process_type.h" | 25 #include "content/public/common/process_type.h" |
26 #include "ipc/message_filter.h" | 26 #include "ipc/message_filter.h" |
| 27 #include "ppapi/features/features.h" |
27 #include "ppapi/host/ppapi_host.h" | 28 #include "ppapi/host/ppapi_host.h" |
28 | 29 |
29 #if !defined(ENABLE_PLUGINS) | 30 #if !BUILDFLAG(ENABLE_PLUGINS) |
30 #error "Plugins should be enabled" | 31 #error "Plugins should be enabled" |
31 #endif | 32 #endif |
32 | 33 |
33 namespace content { | 34 namespace content { |
34 | 35 |
35 class CONTENT_EXPORT BrowserPpapiHostImpl : public BrowserPpapiHost { | 36 class CONTENT_EXPORT BrowserPpapiHostImpl : public BrowserPpapiHost { |
36 public: | 37 public: |
37 class InstanceObserver { | 38 class InstanceObserver { |
38 public: | 39 public: |
39 // Called when the plugin instance is throttled or unthrottled because of | 40 // Called when the plugin instance is throttled or unthrottled because of |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 scoped_refptr<HostMessageFilter> message_filter_; | 168 scoped_refptr<HostMessageFilter> message_filter_; |
168 | 169 |
169 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; | 170 BrowserPpapiHost::OnKeepaliveCallback on_keepalive_callback_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); | 172 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace content | 175 } // namespace content |
175 | 176 |
176 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 177 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |