Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/shell/browser/layout_test/layout_test_permission_manager.h

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PERMISSION_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PERMISSION_MANAGER_H_
7
8 #include "base/callback_forward.h"
9 #include "base/macros.h"
10 #include "content/shell/browser/shell_permission_manager.h"
11
12 namespace content {
13
14 class LayoutTestPermissionManager : public ShellPermissionManager {
15 public:
16 LayoutTestPermissionManager();
17 ~LayoutTestPermissionManager() override;
18
19 // ShellPermissionManager overrides.
20 void RequestPermission(
21 PermissionType permission,
22 WebContents* web_contents,
23 int request_id,
24 const GURL& requesting_origin,
25 bool user_gesture,
26 const base::Callback<void(PermissionStatus)>& callback) override;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(LayoutTestPermissionManager);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PERMISSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698