| Index: ios/web_view/internal/web_view_web_main_delegate.h
|
| diff --git a/ios/web_view/internal/web_view_web_main_delegate.h b/ios/web_view/internal/web_view_web_main_delegate.h
|
| index 068183f460442b9b53565c3ff58de7a4895a4a04..de7a2d7e92d37ef8dca9027cb6b4840e3d8e6969 100644
|
| --- a/ios/web_view/internal/web_view_web_main_delegate.h
|
| +++ b/ios/web_view/internal/web_view_web_main_delegate.h
|
| @@ -6,27 +6,26 @@
|
| #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_
|
|
|
| #include <memory>
|
| +#include <string>
|
|
|
| #include "base/macros.h"
|
| #include "ios/web/public/app/web_main_delegate.h"
|
|
|
| -@protocol CWVDelegate;
|
| -
|
| namespace ios_web_view {
|
| class WebViewWebClient;
|
|
|
| // WebView implementation of WebMainDelegate.
|
| class WebViewWebMainDelegate : public web::WebMainDelegate {
|
| public:
|
| - explicit WebViewWebMainDelegate(id<CWVDelegate> delegate);
|
| + explicit WebViewWebMainDelegate(const std::string& user_agent_product);
|
| ~WebViewWebMainDelegate() override;
|
|
|
| // WebMainDelegate implementation.
|
| void BasicStartupComplete() override;
|
|
|
| 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 content and web clients registered by this object.
|
| std::unique_ptr<WebViewWebClient> web_client_;
|
|
|