OLD | NEW |
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_ |
OLD | NEW |