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

Side by Side Diff: android_webview/native/aw_contents_io_thread_client_impl.cc

Issue 1552723002: Convert Pass()→std::move() in //android_webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_dev_tools_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 5 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "android_webview/common/devtools_instrumentation.h" 10 #include "android_webview/common/devtools_instrumentation.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 AwContentsBackgroundThreadClient::shouldInterceptRequest( 301 AwContentsBackgroundThreadClient::shouldInterceptRequest(
302 env, 302 env,
303 obj.obj(), 303 obj.obj(),
304 web_request.jstring_url.obj(), 304 web_request.jstring_url.obj(),
305 web_request.is_main_frame, 305 web_request.is_main_frame,
306 web_request.has_user_gesture, 306 web_request.has_user_gesture,
307 web_request.jstring_method.obj(), 307 web_request.jstring_method.obj(),
308 web_request.jstringArray_header_names.obj(), 308 web_request.jstringArray_header_names.obj(),
309 web_request.jstringArray_header_values.obj()); 309 web_request.jstringArray_header_values.obj());
310 return scoped_ptr<AwWebResourceResponse>( 310 return scoped_ptr<AwWebResourceResponse>(
311 ret.is_null() ? nullptr : new AwWebResourceResponseImpl(ret)).Pass(); 311 ret.is_null() ? nullptr : new AwWebResourceResponseImpl(ret));
312 } 312 }
313 313
314 scoped_ptr<AwWebResourceResponse> ReturnNull() { 314 scoped_ptr<AwWebResourceResponse> ReturnNull() {
315 return scoped_ptr<AwWebResourceResponse>(); 315 return scoped_ptr<AwWebResourceResponse>();
316 } 316 }
317 317
318 } // namespace 318 } // namespace
319 319
320 void AwContentsIoThreadClientImpl::ShouldInterceptRequestAsync( 320 void AwContentsIoThreadClientImpl::ShouldInterceptRequestAsync(
321 const net::URLRequest* request, 321 const net::URLRequest* request,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 jstring_reason.obj(), 504 jstring_reason.obj(),
505 jstringArray_response_header_names.obj(), 505 jstringArray_response_header_names.obj(),
506 jstringArray_response_header_values.obj()); 506 jstringArray_response_header_values.obj());
507 } 507 }
508 508
509 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { 509 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) {
510 return RegisterNativesImpl(env); 510 return RegisterNativesImpl(env);
511 } 511 }
512 512
513 } // namespace android_webview 513 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_dev_tools_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698