| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| 7 |
| 8 #include "blimp/engine/app/blimp_content_browser_client.h" |
| 9 |
| 10 namespace blimp { |
| 11 namespace engine { |
| 12 |
| 13 class BlimpBrowserMainParts; |
| 14 |
| 15 // Blimp testing implementation of ContentBrowserClient. Class to extend |
| 16 // class BlimpContentBrowserClient for testing. I.e. This overrides method |
| 17 // CreateBrowserMainParts(), replacing the use of BlimpBrowserMainParts |
| 18 // by enabling TestBlimpBrowserMainParts. |
| 19 class TestBlimpContentBrowserClient : public BlimpContentBrowserClient { |
| 20 public: |
| 21 TestBlimpContentBrowserClient(); |
| 22 ~TestBlimpContentBrowserClient() = default; |
| 23 |
| 24 // BlimpContentBrowserClient implementation. |
| 25 content::BrowserMainParts* CreateBrowserMainParts( |
| 26 const content::MainFunctionParams& parameters) override; |
| 27 |
| 28 private: |
| 29 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; |
| 30 }; |
| 31 |
| 32 } // namespace engine |
| 33 } // namespace blimp |
| 34 |
| 35 #endif // BLIMP_ENGINE_TESTING_APP_TEST_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |