1 // Copyright 2014 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.
5 #ifndef IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_
6 #define IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ios/web/public/web_client.h"
13 class ShellBrowserState
;
14 class ShellWebMainParts
;
16 class ShellWebClient
: public WebClient
{
19 ~ShellWebClient() override
;
21 // WebClient implementation.
22 WebMainParts
* CreateWebMainParts() override
;
23 std::string
GetProduct() const override
;
24 std::string
GetUserAgent(bool desktop_user_agent
) const override
;
26 ShellBrowserState
* browser_state() const;
29 scoped_ptr
<ShellWebMainParts
> web_main_parts_
;
31 DISALLOW_COPY_AND_ASSIGN(ShellWebClient
);
36 #endif // IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_