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

Side by Side Diff: content/shell/browser/layout_test/layout_test_content_browser_client.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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/shell/browser/shell_content_browser_client.h" 8 #include "content/shell/browser/shell_content_browser_client.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 enum class PermissionType;
13 class LayoutTestBrowserContext; 12 class LayoutTestBrowserContext;
14 class LayoutTestNotificationManager; 13 class LayoutTestNotificationManager;
15 14
16 class LayoutTestContentBrowserClient : public ShellContentBrowserClient { 15 class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
17 public: 16 public:
18 // Gets the current instance. 17 // Gets the current instance.
19 static LayoutTestContentBrowserClient* Get(); 18 static LayoutTestContentBrowserClient* Get();
20 19
21 LayoutTestContentBrowserClient(); 20 LayoutTestContentBrowserClient();
22 ~LayoutTestContentBrowserClient() override; 21 ~LayoutTestContentBrowserClient() override;
23 22
24 LayoutTestBrowserContext* GetLayoutTestBrowserContext(); 23 LayoutTestBrowserContext* GetLayoutTestBrowserContext();
25 24
26 // Implements the PlatformNotificationService interface. 25 // Implements the PlatformNotificationService interface.
27 LayoutTestNotificationManager* GetLayoutTestNotificationManager(); 26 LayoutTestNotificationManager* GetLayoutTestNotificationManager();
28 27
29 // ContentBrowserClient overrides. 28 // ContentBrowserClient overrides.
30 void RenderProcessWillLaunch(RenderProcessHost* host) override; 29 void RenderProcessWillLaunch(RenderProcessHost* host) override;
31 void RequestPermission(
32 PermissionType permission,
33 WebContents* web_contents,
34 int bridge_id,
35 const GURL& requesting_frame,
36 bool user_gesture,
37 const base::Callback<void(PermissionStatus)>& callback) override;
38 30
39 PlatformNotificationService* GetPlatformNotificationService() override; 31 PlatformNotificationService* GetPlatformNotificationService() override;
40 void GetAdditionalNavigatorConnectServices( 32 void GetAdditionalNavigatorConnectServices(
41 const scoped_refptr<NavigatorConnectContext>& context) override; 33 const scoped_refptr<NavigatorConnectContext>& context) override;
42 34
43 private: 35 private:
44 scoped_ptr<LayoutTestNotificationManager> layout_test_notification_manager_; 36 scoped_ptr<LayoutTestNotificationManager> layout_test_notification_manager_;
45 }; 37 };
46 38
47 } // content 39 } // content
48 40
49 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_ H_ 41 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698