blob: 966d584cb7ec63d8dcc2bdb1315dd8f23d1d7c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// 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"
#include "content/public/browser/web_contents_user_data.h"
class PepperBrokerObserver
: public content::WebContentsObserver,
public content::WebContentsUserData<PepperBrokerObserver> {
public:
virtual ~PepperBrokerObserver();
private:
explicit PepperBrokerObserver(content::WebContents* web_contents);
friend class content::WebContentsUserData<PepperBrokerObserver>;
virtual bool RequestPpapiBrokerPermission(
content::WebContents* web_contents,
const GURL& url,
const FilePath& plugin_path,
const base::Callback<void(bool)>& callback) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(PepperBrokerObserver);
};
#endif // CHROME_BROWSER_PEPPER_BROKER_OBSERVER_H_
|