blob: 55db94351931e6e3d37c50a370d9e47aa99abb9b [file] [log] [blame]
// Copyright 2014 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 ATHENA_EXTENSIONS_CHROME_ATHENA_CHROME_APP_DELEGATE_H_
#define ATHENA_EXTENSIONS_CHROME_ATHENA_CHROME_APP_DELEGATE_H_
#include "athena/extensions/athena_app_delegate_base.h"
namespace athena {
class AthenaChromeAppDelegate : public AthenaAppDelegateBase {
public:
AthenaChromeAppDelegate();
~AthenaChromeAppDelegate() override;
private:
// extensions::AppDelegate:
void InitWebContents(content::WebContents* web_contents) override;
content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
SkColor initial_color) override;
void RunFileChooser(content::WebContents* tab,
const content::FileChooserParams& params) override;
void RequestMediaAccessPermission(
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback,
const extensions::Extension* extension) override;
bool CheckMediaAccessPermission(
content::WebContents* web_contents,
const GURL& security_origin,
content::MediaStreamType type,
const extensions::Extension* extension) override;
void SetWebContentsBlocked(content::WebContents* web_contents,
bool blocked) override;
DISALLOW_COPY_AND_ASSIGN(AthenaChromeAppDelegate);
};
} // namespace athena
#endif // ATHENA_EXTENSIONS_CHROME_ATHENA_CHROME_APP_DELEGATE_H_