| Index: content/public/browser/pepper_flash_settings_helper.h
|
| diff --git a/content/public/browser/pepper_flash_settings_helper.h b/content/public/browser/pepper_flash_settings_helper.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e01002b73c82a3d0f672e4dbc041bf59d82cce28
|
| --- /dev/null
|
| +++ b/content/public/browser/pepper_flash_settings_helper.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
|
| +#define CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
|
| +#pragma once
|
| +
|
| +#include "base/callback.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "content/common/content_export.h"
|
| +
|
| +class FilePath;
|
| +
|
| +namespace IPC {
|
| +struct ChannelHandle;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +// This class should only be used on the IO thread.
|
| +class CONTENT_EXPORT PepperFlashSettingsHelper
|
| + : public base::RefCounted<PepperFlashSettingsHelper> {
|
| + public:
|
| + static scoped_refptr<PepperFlashSettingsHelper> Create();
|
| +
|
| + // Called when OpenChannelToBroker() is completed.
|
| + // |success| indicates whether the channel is successfully opened to the
|
| + // broker. On error, |channel_handle| is set to IPC::ChannelHandle().
|
| + typedef base::Callback<void(bool /* success */,
|
| + const IPC::ChannelHandle& /* channel_handle */)>
|
| + OpenChannelCallback;
|
| + virtual void OpenChannelToBroker(const FilePath& path,
|
| + const OpenChannelCallback& callback) = 0;
|
| +
|
| + protected:
|
| + friend class base::RefCounted<PepperFlashSettingsHelper>;
|
| + virtual ~PepperFlashSettingsHelper() {}
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_H_
|
|
|