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

Unified Diff: content/browser/pepper_flash_settings_helper_impl.h

Issue 10391173: Pepper Flash settings integration: implement "deauthorize content licenses". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/pepper_flash_settings_helper_impl.h
diff --git a/content/browser/pepper_flash_settings_helper_impl.h b/content/browser/pepper_flash_settings_helper_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfecc002b9a48537511da3e93c3118c4fde0abe7
--- /dev/null
+++ b/content/browser/pepper_flash_settings_helper_impl.h
@@ -0,0 +1,44 @@
+// 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_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_
+#define CONTENT_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "content/browser/ppapi_plugin_process_host.h"
+#include "content/public/browser/pepper_flash_settings_helper.h"
+
+namespace content {
+
+class CONTENT_EXPORT PepperFlashSettingsHelperImpl
+ : public PepperFlashSettingsHelper,
+ public PpapiPluginProcessHost::BrokerClient {
+ public:
+ PepperFlashSettingsHelperImpl();
+
+ // PepperFlashSettingsHelper implementation.
+ virtual void OpenChannelToBroker(
+ const FilePath& path,
+ const OpenChannelCallback& callback) OVERRIDE;
+
+ // PpapiPluginProcessHost::BrokerClient implementation.
+ virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
+ int* renderer_id) OVERRIDE;
+ virtual void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle,
+ int plugin_child_id) OVERRIDE;
+ virtual bool OffTheRecord() OVERRIDE;
+
+ protected:
+ virtual ~PepperFlashSettingsHelperImpl();
+
+ private:
+ OpenChannelCallback callback_;
+ DISALLOW_COPY_AND_ASSIGN(PepperFlashSettingsHelperImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_PEPPER_FLASH_SETTINGS_HELPER_IMPL_H_
« no previous file with comments | « chrome/browser/pepper_flash_settings_manager.cc ('k') | content/browser/pepper_flash_settings_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698