summaryrefslogtreecommitdiffstats
path: root/athena/extensions/shell/athena_shell_app_delegate.h
blob: cb22fde74f7e2755455e68e975139e832c73c293 (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
31
32
33
34
35
36
37
38
39
40
41
42
// 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_SHELL_ATHENA_APP_DELEGATE_H_
#define ATHENA_EXTENSIONS_SHELL_ATHENA_APP_DELEGATE_H_

#include "athena/extensions/athena_app_delegate_base.h"

namespace athena {

class AthenaShellAppDelegate : public AthenaAppDelegateBase {
 public:
  AthenaShellAppDelegate();
  ~AthenaShellAppDelegate() 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(AthenaShellAppDelegate);
};

}  // namespace athena

#endif  // ATHENA_EXTENSIONS_SHELL_ATHENA_APP_DELEGATE_H_