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

Side by Side Diff: ios/web_view/internal/criwv_web_client.h

Issue 2643773005: Upstream ios/web_view source code. (Closed)
Patch Set: Remove request tracker and fix pointer to CRIWVWebMainParts. Created 3 years, 11 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
OLDNEW
(Empty)
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.
4
5 #ifndef IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_CLIENT_H_
6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_CLIENT_H_
7
8 #include <memory>
9 #include "base/compiler_specific.h"
10 #import "ios/web/public/web_client.h"
11
12 @protocol CRIWVDelegate;
13
14 namespace ios_web_view {
15 class CRIWVBrowserState;
16 class CRIWVWebMainParts;
17
18 // CRIWV-specific implementation of WebClient. Delegates some functionality to
19 // CRIWVDelegate.
20 class CRIWVWebClient : public web::WebClient {
21 public:
22 explicit CRIWVWebClient(id<CRIWVDelegate> delegate);
23 ~CRIWVWebClient() override;
24
25 // WebClient implementation.
26 web::WebMainParts* CreateWebMainParts() override;
27 std::string GetProduct() const override;
28 std::string GetUserAgent(bool desktop_user_agent) const override;
29
30 // TODO(crbug.com/679895): Find a better way to get a BrowserState object to
31 // AppDelegate.
32 CRIWVBrowserState* browser_state() const;
33
34 private:
35 // This object's delegate.
36 id<CRIWVDelegate> delegate_;
37
38 // The WebMainParts created by |CreateWebMainParts()|.
39 CRIWVWebMainParts* web_main_parts_; // weak
sdefresne 2017/01/24 14:54:30 nit: remove "// weak" as it is (IMO) redundant. Al
michaeldo 2017/01/24 22:35:26 Done in dep CL.
40
41 DISALLOW_COPY_AND_ASSIGN(CRIWVWebClient);
42 };
43
44 } // namespace ios_web_view
45
46 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_WEB_CLIENT_H_
OLDNEW
« no previous file with comments | « ios/web_view/internal/criwv_url_request_context_getter.mm ('k') | ios/web_view/internal/criwv_web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698