| 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_BROWSER_MAIN_PARTS_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_MAIN_PARTS_H_ |
| 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_MAIN_PARTS_H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/shell/browser/shell_browser_main_parts.h" | 12 #include "content/shell/browser/shell_browser_main_parts.h" |
| 13 #include "ppapi/features/features.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 class ShellPluginServiceFilter; | 17 class ShellPluginServiceFilter; |
| 17 | 18 |
| 18 class LayoutTestBrowserMainParts : public ShellBrowserMainParts { | 19 class LayoutTestBrowserMainParts : public ShellBrowserMainParts { |
| 19 public: | 20 public: |
| 20 explicit LayoutTestBrowserMainParts(const MainFunctionParams& parameters); | 21 explicit LayoutTestBrowserMainParts(const MainFunctionParams& parameters); |
| 21 ~LayoutTestBrowserMainParts() override; | 22 ~LayoutTestBrowserMainParts() override; |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 void InitializeBrowserContexts() override; | 25 void InitializeBrowserContexts() override; |
| 25 void InitializeMessageLoopContext() override; | 26 void InitializeMessageLoopContext() override; |
| 26 | 27 |
| 27 #if defined(ENABLE_PLUGINS) | 28 #if BUILDFLAG(ENABLE_PLUGINS) |
| 28 std::unique_ptr<ShellPluginServiceFilter> plugin_service_filter_; | 29 std::unique_ptr<ShellPluginServiceFilter> plugin_service_filter_; |
| 29 #endif | 30 #endif |
| 30 | 31 |
| 31 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserMainParts); | 32 DISALLOW_COPY_AND_ASSIGN(LayoutTestBrowserMainParts); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace content | 35 } // namespace content |
| 35 | 36 |
| 36 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_MAIN_PARTS_H_ | 37 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |