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 class LayoutTestBrowserContext; | 12 class LayoutTestBrowserContext; |
13 class LayoutTestNotificationManager; | 13 class LayoutTestNotificationManager; |
14 | 14 |
15 class LayoutTestContentBrowserClient : public ShellContentBrowserClient { | 15 class LayoutTestContentBrowserClient : public ShellContentBrowserClient { |
16 public: | 16 public: |
17 // Gets the current instance. | 17 // Gets the current instance. |
18 static LayoutTestContentBrowserClient* Get(); | 18 static LayoutTestContentBrowserClient* Get(); |
19 | 19 |
20 LayoutTestContentBrowserClient(); | 20 LayoutTestContentBrowserClient(); |
21 ~LayoutTestContentBrowserClient() override; | 21 ~LayoutTestContentBrowserClient() override; |
22 | 22 |
23 LayoutTestBrowserContext* GetLayoutTestBrowserContext(); | 23 LayoutTestBrowserContext* GetLayoutTestBrowserContext(); |
24 | 24 |
25 // Implements the PlatformNotificationService interface. | 25 // Implements the PlatformNotificationService interface. |
26 LayoutTestNotificationManager* GetLayoutTestNotificationManager(); | 26 LayoutTestNotificationManager* GetLayoutTestNotificationManager(); |
27 | 27 |
28 // ContentBrowserClient overrides. | 28 // ContentBrowserClient overrides. |
29 void RenderProcessWillLaunch(RenderProcessHost* host) override; | 29 void RenderProcessWillLaunch(RenderProcessHost* host) override; |
| 30 void ExposeInterfacesToRenderer( |
| 31 shell::InterfaceRegistry* registry, |
| 32 RenderProcessHost* render_process_host) override; |
30 void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 33 void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
31 WebPreferences* prefs) override; | 34 WebPreferences* prefs) override; |
32 void ResourceDispatcherHostCreated() override; | 35 void ResourceDispatcherHostCreated() override; |
33 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 36 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
34 int child_process_id) override; | 37 int child_process_id) override; |
35 BrowserMainParts* CreateBrowserMainParts( | 38 BrowserMainParts* CreateBrowserMainParts( |
36 const MainFunctionParams& parameters) override; | 39 const MainFunctionParams& parameters) override; |
37 | 40 |
38 PlatformNotificationService* GetPlatformNotificationService() override; | 41 PlatformNotificationService* GetPlatformNotificationService() override; |
39 | 42 |
40 private: | 43 private: |
41 std::unique_ptr<LayoutTestNotificationManager> | 44 std::unique_ptr<LayoutTestNotificationManager> |
42 layout_test_notification_manager_; | 45 layout_test_notification_manager_; |
43 }; | 46 }; |
44 | 47 |
45 } // content | 48 } // content |
46 | 49 |
47 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_
H_ | 50 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_CONTENT_BROWSER_CLIENT_
H_ |
OLD | NEW |