| Index: blimp/engine/testing/app/test_blimp_content_browser_client.h
|
| diff --git a/blimp/engine/testing/app/test_blimp_content_browser_client.h b/blimp/engine/testing/app/test_blimp_content_browser_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb015f2e1ed2be4ce2759136e19e0c4226a0f774
|
| --- /dev/null
|
| +++ b/blimp/engine/testing/app/test_blimp_content_browser_client.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2016 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 BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_
|
| +#define BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_
|
| +
|
| +#include "blimp/engine/app/blimp_content_browser_client.h"
|
| +
|
| +namespace blimp {
|
| +namespace engine {
|
| +
|
| +class BlimpBrowserMainParts;
|
| +
|
| +// Blimp testing implementation of ContentBrowserClient. Class to extend
|
| +// class BlimpContentBrowserClient for testing. I.e. This overrides method
|
| +// CreateBrowserMainParts(), replacing the use of BlimpBrowserMainParts
|
| +// by enabling TestBlimpBrowserMainParts.
|
| +class TestBlimpContentBrowserClient : public BlimpContentBrowserClient {
|
| + public:
|
| + TestBlimpContentBrowserClient();
|
| + ~TestBlimpContentBrowserClient() = default;
|
| +
|
| + // BlimpContentBrowserClient implementation.
|
| + content::BrowserMainParts* CreateBrowserMainParts(
|
| + const content::MainFunctionParams& parameters) override;
|
| +
|
| + private:
|
| + BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr;
|
| +};
|
| +
|
| +} // namespace engine
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_
|
|
|