blob: 33517211e28fc591b4bbf2f2d6e3dbeb8bac6ee9 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_PARTS_H_
#define CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_PARTS_H_
#include <memory>
#include "base/macros.h"
#include "build/build_config.h"
#include "content/shell/browser/shell_browser_main_parts.h"
#include "ppapi/buildflags/buildflags.h"
namespace content {
class ShellPluginServiceFilter;
class WebTestBrowserMainParts : public ShellBrowserMainParts {
public:
explicit WebTestBrowserMainParts(const MainFunctionParams& parameters);
~WebTestBrowserMainParts() override;
private:
// ShellBrowserMainParts overrides.
void InitializeBrowserContexts() override;
void InitializeMessageLoopContext() override;
std::unique_ptr<ShellPlatformDelegate> CreateShellPlatformDelegate() override;
#if BUILDFLAG(ENABLE_PLUGINS)
std::unique_ptr<ShellPluginServiceFilter> plugin_service_filter_;
#endif
DISALLOW_COPY_AND_ASSIGN(WebTestBrowserMainParts);
};
} // namespace content
#endif // CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_PARTS_H_