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

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

Issue 2791403005: Remove CWV class and move setting User Agent to CWVWebViewConfiguration. (Closed)
Patch Set: Remove cwv.h import from Framework header. 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 unified diff | Download patch
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_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ 5 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_
6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ 6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ios/web/public/app/web_main_delegate.h" 12 #include "ios/web/public/app/web_main_delegate.h"
13 13
14 namespace ios_web_view { 14 namespace ios_web_view {
15 class WebViewWebClient; 15 class WebViewWebClient;
16 16
17 // WebView implementation of WebMainDelegate. 17 // WebView implementation of WebMainDelegate.
18 class WebViewWebMainDelegate : public web::WebMainDelegate { 18 class WebViewWebMainDelegate : public web::WebMainDelegate {
19 public: 19 public:
20 explicit WebViewWebMainDelegate(const std::string& user_agent_product); 20 WebViewWebMainDelegate();
21 ~WebViewWebMainDelegate() override; 21 ~WebViewWebMainDelegate() override;
22 22
23 // WebMainDelegate implementation. 23 // WebMainDelegate implementation.
24 void BasicStartupComplete() override; 24 void BasicStartupComplete() override;
25 25
26 private: 26 private:
27 // The name of the product to be used in the User Agent string.
28 std::string user_agent_product_;
29
30 // The content and web clients registered by this object. 27 // The content and web clients registered by this object.
31 std::unique_ptr<WebViewWebClient> web_client_; 28 std::unique_ptr<WebViewWebClient> web_client_;
32 29
33 DISALLOW_COPY_AND_ASSIGN(WebViewWebMainDelegate); 30 DISALLOW_COPY_AND_ASSIGN(WebViewWebMainDelegate);
34 }; 31 };
35 32
36 } // namespace ios_web_view 33 } // namespace ios_web_view
37 34
38 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_ 35 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_WEB_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698