| // Copyright (c) 2015 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_BROWSER_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| #define BLIMP_ENGINE_BROWSER_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| |
| #include "base/macros.h" |
| #include "content/public/browser/content_browser_client.h" |
| |
| namespace blimp { |
| namespace engine { |
| |
| class BlimpBrowserMainParts; |
| class BlimpBrowserContext; |
| |
| class BlimpContentBrowserClient : public content::ContentBrowserClient { |
| public: |
| BlimpContentBrowserClient(); |
| ~BlimpContentBrowserClient() override; |
| |
| // content::ContentBrowserClient implementation. |
| content::BrowserMainParts* CreateBrowserMainParts( |
| const content::MainFunctionParams& parameters) override; |
| net::URLRequestContextGetter* CreateRequestContext( |
| content::BrowserContext* browser_context, |
| content::ProtocolHandlerMap* protocol_handlers, |
| content::URLRequestInterceptorScopedVector request_interceptors) override; |
| |
| BlimpBrowserContext* GetBrowserContext(); |
| |
| private: |
| // Owned by BrowserMainLoop |
| BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; |
| |
| DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); |
| }; |
| |
| } // namespace engine |
| } // namespace blimp |
| |
| #endif // BLIMP_ENGINE_BROWSER_BLIMP_CONTENT_BROWSER_CLIENT_H_ |