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.
5 #ifndef CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
6 #define CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
22 // This class should only be used on the IO thread.
23 class CONTENT_EXPORT PepperFlashSettingsHelper
24 : public base::RefCounted
<PepperFlashSettingsHelper
> {
26 static scoped_refptr
<PepperFlashSettingsHelper
> Create();
28 // Called when OpenChannelToBroker() is completed.
29 // |success| indicates whether the channel is successfully opened to the
30 // broker. On error, |channel_handle| is set to IPC::ChannelHandle().
31 typedef base::Callback
<void(bool /* success */,
32 const IPC::ChannelHandle
& /* channel_handle */)>
34 virtual void OpenChannelToBroker(const base::FilePath
& path
,
35 const OpenChannelCallback
& callback
) = 0;
38 friend class base::RefCounted
<PepperFlashSettingsHelper
>;
39 virtual ~PepperFlashSettingsHelper() {}
42 } // namespace content
44 #endif // CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_