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

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

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 #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
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_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698