Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: ios/web/shell/shell_web_client.h

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.mm ('k') | ios/web/shell/shell_web_client.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_ 5 #ifndef IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_
6 #define IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_ 6 #define IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #import "ios/web/public/web_client.h" 12 #import "ios/web/public/web_client.h"
13 13
14 namespace web { 14 namespace web {
15 class ShellBrowserState; 15 class ShellBrowserState;
16 class ShellWebMainParts; 16 class ShellWebMainParts;
17 17
18 class ShellWebClient : public WebClient { 18 class ShellWebClient : public WebClient {
19 public: 19 public:
20 ShellWebClient(); 20 ShellWebClient();
21 ~ShellWebClient() override; 21 ~ShellWebClient() override;
22 22
23 // WebClient implementation. 23 // WebClient implementation.
24 WebMainParts* CreateWebMainParts() override; 24 WebMainParts* CreateWebMainParts() override;
25 std::string GetProduct() const override; 25 std::string GetProduct() const override;
26 std::string GetUserAgent(bool desktop_user_agent) const override; 26 std::string GetUserAgent(UserAgentType type) const override;
27 void AllowCertificateError( 27 void AllowCertificateError(
28 WebState* web_state, 28 WebState* web_state,
29 int cert_error, 29 int cert_error,
30 const net::SSLInfo& ssl_info, 30 const net::SSLInfo& ssl_info,
31 const GURL& request_url, 31 const GURL& request_url,
32 bool overridable, 32 bool overridable,
33 const base::Callback<void(bool)>& callback) override; 33 const base::Callback<void(bool)>& callback) override;
34 34
35 ShellBrowserState* browser_state() const; 35 ShellBrowserState* browser_state() const;
36 36
37 private: 37 private:
38 std::unique_ptr<ShellWebMainParts> web_main_parts_; 38 std::unique_ptr<ShellWebMainParts> web_main_parts_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(ShellWebClient); 40 DISALLOW_COPY_AND_ASSIGN(ShellWebClient);
41 }; 41 };
42 42
43 } // namespace web 43 } // namespace web
44 44
45 #endif // IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_ 45 #endif // IOS_WEB_SHELL_SHELL_WEB_CLIENT_H_
OLDNEW
« no previous file with comments | « ios/web/shell/shell_url_request_context_getter.mm ('k') | ios/web/shell/shell_web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698