| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ | |
| 6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "blimp/engine/common/blimp_content_client.h" | |
| 12 #include "content/public/app/content_main_delegate.h" | |
| 13 | |
| 14 namespace blimp { | |
| 15 namespace engine { | |
| 16 | |
| 17 class BlimpContentBrowserClient; | |
| 18 class BlimpContentRendererClient; | |
| 19 | |
| 20 class BlimpContentMainDelegate : public content::ContentMainDelegate { | |
| 21 public: | |
| 22 BlimpContentMainDelegate(); | |
| 23 ~BlimpContentMainDelegate() override; | |
| 24 | |
| 25 BlimpContentBrowserClient* browser_client() { return browser_client_.get(); } | |
| 26 | |
| 27 // content::ContentMainDelegate implementation. | |
| 28 bool BasicStartupComplete(int* exit_code) override; | |
| 29 void PreSandboxStartup() override; | |
| 30 content::ContentBrowserClient* CreateContentBrowserClient() override; | |
| 31 content::ContentRendererClient* CreateContentRendererClient() override; | |
| 32 | |
| 33 private: | |
| 34 void InitializeResourceBundle(); | |
| 35 | |
| 36 std::unique_ptr<BlimpContentBrowserClient> browser_client_; | |
| 37 std::unique_ptr<BlimpContentRendererClient> renderer_client_; | |
| 38 BlimpContentClient content_client_; | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(BlimpContentMainDelegate); | |
| 41 }; | |
| 42 | |
| 43 } // namespace engine | |
| 44 } // namespace blimp | |
| 45 | |
| 46 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ | |
| OLD | NEW |