[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 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 | #ifndef CONTENT_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_ | ||||
6 | #define CONTENT_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_ | ||||
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 7 | |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 8 | #include "base/compiler_specific.h" |
avi | b734894 | 2015-12-25 20:57:10 | [diff] [blame] | 9 | #include "base/macros.h" |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 10 | #include "content/browser/ppapi_plugin_process_host.h" |
11 | #include "content/public/browser/pepper_flash_settings_helper.h" | ||||
12 | |||||
13 | namespace content { | ||||
14 | |||||
15 | class CONTENT_EXPORT PepperFlashSettingsHelperImpl | ||||
16 | : public PepperFlashSettingsHelper, | ||||
Nico Weber | 43ddd7a3 | 2017-08-15 19:19:27 | [diff] [blame] | 17 | public PpapiPluginProcessHost::BrokerClient { |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 18 | public: |
19 | PepperFlashSettingsHelperImpl(); | ||||
20 | |||||
21 | // PepperFlashSettingsHelper implementation. | ||||
dcheng | c2282aa | 2014-10-21 12:07:58 | [diff] [blame] | 22 | void OpenChannelToBroker(const base::FilePath& path, |
23 | const OpenChannelCallback& callback) override; | ||||
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 24 | |
25 | // PpapiPluginProcessHost::BrokerClient implementation. | ||||
dcheng | c2282aa | 2014-10-21 12:07:58 | [diff] [blame] | 26 | void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, |
27 | int* renderer_id) override; | ||||
28 | void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle, | ||||
29 | base::ProcessId plugin_pid, | ||||
30 | int plugin_child_id) override; | ||||
chili | 59caaddf | 2016-09-09 18:51:56 | [diff] [blame] | 31 | bool Incognito() override; |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 32 | |
33 | protected: | ||||
dcheng | c2282aa | 2014-10-21 12:07:58 | [diff] [blame] | 34 | ~PepperFlashSettingsHelperImpl() override; |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 35 | |
36 | private: | ||||
37 | OpenChannelCallback callback_; | ||||
38 | DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsHelperImpl); | ||||
39 | }; | ||||
40 | |||||
41 | } // namespace content | ||||
42 | |||||
43 | #endif // CONTENT_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_ |