Index: chrome/browser/pepper_broker_observer.h |
diff --git a/chrome/browser/pepper_broker_observer.h b/chrome/browser/pepper_broker_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e49d962fcab8ff6eadf8f55d28b33e9bb9efee69 |
--- /dev/null |
+++ b/chrome/browser/pepper_broker_observer.h |
@@ -0,0 +1,25 @@ |
+// 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 CHROME_BROWSER_PEPPER_BROKER_OBSERVER_H_ |
+#define CHROME_BROWSER_PEPPER_BROKER_OBSERVER_H_ |
+ |
+#include "content/public/browser/web_contents_observer.h" |
+ |
+class PepperBrokerObserver : public content::WebContentsObserver { |
+ public: |
+ explicit PepperBrokerObserver(content::WebContents* web_contents); |
+ virtual ~PepperBrokerObserver(); |
+ |
+ virtual bool RequestPpapiBrokerPermission( |
+ content::WebContents* web_contents, |
+ const GURL& url, |
+ const FilePath& plugin_path, |
+ const base::Callback<void(bool)>& callback) OVERRIDE; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(PepperBrokerObserver); |
+}; |
+ |
+#endif // CHROME_BROWSER_PEPPER_BROKER_OBSERVER_H_ |