blob: 9a5887ba31fb8574f8df73c31a04a532c4da3116 [file] [log] [blame]
[email protected]1a559442012-05-27 07:18:461// 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]1a559442012-05-27 07:18:467
8#include "base/basictypes.h"
9#include "base/compiler_specific.h"
10#include "content/browser/ppapi_plugin_process_host.h"
11#include "content/public/browser/pepper_flash_settings_helper.h"
12
13namespace content {
14
15class CONTENT_EXPORT PepperFlashSettingsHelperImpl
16 : public PepperFlashSettingsHelper,
[email protected]512d03f2012-06-26 01:06:0617 NON_EXPORTED_BASE(public PpapiPluginProcessHost::BrokerClient) {
[email protected]1a559442012-05-27 07:18:4618 public:
19 PepperFlashSettingsHelperImpl();
20
21 // PepperFlashSettingsHelper implementation.
dchengc2282aa2014-10-21 12:07:5822 void OpenChannelToBroker(const base::FilePath& path,
23 const OpenChannelCallback& callback) override;
[email protected]1a559442012-05-27 07:18:4624
25 // PpapiPluginProcessHost::BrokerClient implementation.
dchengc2282aa2014-10-21 12:07:5826 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;
31 bool OffTheRecord() override;
[email protected]1a559442012-05-27 07:18:4632
33 protected:
dchengc2282aa2014-10-21 12:07:5834 ~PepperFlashSettingsHelperImpl() override;
[email protected]1a559442012-05-27 07:18:4635
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_