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

Unified Diff: ios/web_view/internal/web_view_web_client.h

Issue 2800433002: Remove CWVDelegate. (Closed)
Patch Set: Respond to comments. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web_view/internal/cwv.mm ('k') | ios/web_view/internal/web_view_web_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/web_view_web_client.h
diff --git a/ios/web_view/internal/web_view_web_client.h b/ios/web_view/internal/web_view_web_client.h
index 11784fcb4e2f87fb0c8828ef6fd33de161e7e8d0..22b657dfcaea20e9a3fbead7d5055d9538e75b42 100644
--- a/ios/web_view/internal/web_view_web_client.h
+++ b/ios/web_view/internal/web_view_web_client.h
@@ -10,8 +10,6 @@
#include "base/compiler_specific.h"
#import "ios/web/public/web_client.h"
-@protocol CWVDelegate;
-
namespace ios_web_view {
class WebViewBrowserState;
class WebViewWebMainParts;
@@ -19,7 +17,7 @@ class WebViewWebMainParts;
// WebView implementation of WebClient.
class WebViewWebClient : public web::WebClient {
public:
- explicit WebViewWebClient(id<CWVDelegate> delegate);
+ explicit WebViewWebClient(const std::string& user_agent_product);
~WebViewWebClient() override;
// WebClient implementation.
@@ -34,8 +32,8 @@ class WebViewWebClient : public web::WebClient {
WebViewBrowserState* off_the_record_browser_state() const;
private:
- // This object's delegate.
- __weak id<CWVDelegate> delegate_;
+ // The name of the product to be used in the User Agent string.
+ std::string user_agent_product_;
// The WebMainParts created by |CreateWebMainParts()|.
WebViewWebMainParts* web_main_parts_;
« no previous file with comments | « ios/web_view/internal/cwv.mm ('k') | ios/web_view/internal/web_view_web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698