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