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

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

Issue 2715043002: Replace prefix of ios/web_view C++ classes. (Closed)
Patch Set: Created 3 years, 10 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
Index: ios/web_view/internal/web_view_web_client.mm
diff --git a/ios/web_view/internal/criwv_web_client.mm b/ios/web_view/internal/web_view_web_client.mm
similarity index 55%
rename from ios/web_view/internal/criwv_web_client.mm
rename to ios/web_view/internal/web_view_web_client.mm
index 87bef98599b614041b8056d58c94bf44baf21277..13a3959ce4d151a4c050939cd74df692fdb1a351 100644
--- a/ios/web_view/internal/criwv_web_client.mm
+++ b/ios/web_view/internal/web_view_web_client.mm
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/web_view/internal/criwv_web_client.h"
+#import "ios/web_view/internal/web_view_web_client.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/web/public/user_agent.h"
-#include "ios/web_view/internal/criwv_browser_state.h"
-#import "ios/web_view/internal/criwv_web_main_parts.h"
+#include "ios/web_view/internal/web_view_browser_state.h"
+#import "ios/web_view/internal/web_view_web_main_parts.h"
#import "ios/web_view/public/cwv_delegate.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -16,29 +16,29 @@
namespace ios_web_view {
-CRIWVWebClient::CRIWVWebClient(id<CWVDelegate> delegate)
+WebViewWebClient::WebViewWebClient(id<CWVDelegate> delegate)
: delegate_(delegate), web_main_parts_(nullptr) {}
-CRIWVWebClient::~CRIWVWebClient() {}
+WebViewWebClient::~WebViewWebClient() {}
Eugene But (OOO till 7-30) 2017/02/25 01:29:29 Optional nit: WebViewWebClient::~WebViewWebClient
michaeldo 2017/02/25 07:41:12 Done.
-web::WebMainParts* CRIWVWebClient::CreateWebMainParts() {
- web_main_parts_ = new CRIWVWebMainParts(delegate_);
+web::WebMainParts* WebViewWebClient::CreateWebMainParts() {
+ web_main_parts_ = new WebViewWebMainParts(delegate_);
return web_main_parts_;
}
-CRIWVBrowserState* CRIWVWebClient::browser_state() const {
+WebViewBrowserState* WebViewWebClient::browser_state() const {
return web_main_parts_->browser_state();
}
-CRIWVBrowserState* CRIWVWebClient::off_the_record_browser_state() const {
+WebViewBrowserState* WebViewWebClient::off_the_record_browser_state() const {
return web_main_parts_->off_the_record_browser_state();
}
-std::string CRIWVWebClient::GetProduct() const {
+std::string WebViewWebClient::GetProduct() const {
return base::SysNSStringToUTF8([delegate_ partialUserAgent]);
}
-std::string CRIWVWebClient::GetUserAgent(bool desktop_user_agent) const {
+std::string WebViewWebClient::GetUserAgent(bool desktop_user_agent) const {
std::string product = GetProduct();
return web::BuildUserAgentFromProduct(product);
Eugene But (OOO till 7-30) 2017/02/25 01:29:28 Optional nit: return web::BuildUserAgentFromProduc
michaeldo 2017/02/25 07:41:12 Done.
}

Powered by Google App Engine
This is Rietveld 408576698