Browse Source

Remove const interfaces from content::ResourceRequestInfo.

https://chromium-review.googlesource.com/c/chromium/src/+/1474632
deepak1556 6 years ago
parent
commit
3f4f774838

+ 1 - 1
atom/browser/atom_resource_dispatcher_host_delegate.cc

@@ -80,7 +80,7 @@ bool AtomResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
     GURL* origin,
     std::string* payload) {
 #if BUILDFLAG(ENABLE_PDF_VIEWER)
-  const content::ResourceRequestInfo* info =
+  content::ResourceRequestInfo* info =
       content::ResourceRequestInfo::ForRequest(request);
 
   int render_process_host_id;

+ 5 - 6
atom/browser/login_handler.cc

@@ -20,12 +20,11 @@ using content::BrowserThread;
 
 namespace atom {
 
-LoginHandler::LoginHandler(
-    net::URLRequest* request,
-    const net::AuthChallengeInfo& auth_info,
-    net::NetworkDelegate::AuthCallback callback,
-    net::AuthCredentials* credentials,
-    const content::ResourceRequestInfo* resource_request_info)
+LoginHandler::LoginHandler(net::URLRequest* request,
+                           const net::AuthChallengeInfo& auth_info,
+                           net::NetworkDelegate::AuthCallback callback,
+                           net::AuthCredentials* credentials,
+                           content::ResourceRequestInfo* resource_request_info)
     : credentials_(credentials),
       auth_info_(&auth_info),
       auth_callback_(std::move(callback)),

+ 1 - 1
atom/browser/login_handler.h

@@ -26,7 +26,7 @@ class LoginHandler : public base::RefCountedThreadSafe<LoginHandler> {
                const net::AuthChallengeInfo& auth_info,
                net::NetworkDelegate::AuthCallback callback,
                net::AuthCredentials* credentials,
-               const content::ResourceRequestInfo* resource_request_info);
+               content::ResourceRequestInfo* resource_request_info);
 
   // The auth is cancelled, must be called on UI thread.
   void CancelAuth();

+ 1 - 1
atom/browser/net/atom_network_delegate.cc

@@ -101,7 +101,7 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) {
   FillRequestDetails(details, request);
   details->SetInteger("id", request->identifier());
   details->SetDouble("timestamp", base::Time::Now().ToDoubleT() * 1000);
-  const auto* info = content::ResourceRequestInfo::ForRequest(request);
+  auto* info = content::ResourceRequestInfo::ForRequest(request);
   if (info) {
     details->SetString("resourceType",
                        ResourceTypeToString(info->GetResourceType()));