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

Unified Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 9 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: android_webview/browser/aw_contents_io_thread_client.h
diff --git a/android_webview/browser/aw_contents_io_thread_client.h b/android_webview/browser/aw_contents_io_thread_client.h
index 19310066720f794de81e8bfababa70a7d4bf13be..c4a17bc38ac1465b454d98213ac3881d57ec8645 100644
--- a/android_webview/browser/aw_contents_io_thread_client.h
+++ b/android_webview/browser/aw_contents_io_thread_client.h
@@ -7,10 +7,10 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
class GURL;
@@ -63,12 +63,13 @@ class AwContentsIoThreadClient {
// |render_process_id|, |render_frame_id| pair.
// This method can be called from any thread.
// An empty scoped_ptr is a valid return value.
- static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
- int render_frame_id);
+ static std::unique_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
+ int render_frame_id);
// Returns the global thread client for service worker related callbacks.
// An empty scoped_ptr is a valid return value.
- static scoped_ptr<AwContentsIoThreadClient> GetServiceWorkerIoThreadClient();
+ static std::unique_ptr<AwContentsIoThreadClient>
+ GetServiceWorkerIoThreadClient();
// Called on the IO thread when a subframe is created.
static void SubFrameCreated(int render_process_id,
@@ -76,7 +77,7 @@ class AwContentsIoThreadClient {
int child_render_frame_id);
// This method is called on the IO thread only.
- typedef base::Callback<void(scoped_ptr<AwWebResourceResponse>)>
+ typedef base::Callback<void(std::unique_ptr<AwWebResourceResponse>)>
ShouldInterceptRequestResultCallback;
virtual void ShouldInterceptRequestAsync(
const net::URLRequest* request,
« no previous file with comments | « android_webview/browser/aw_contents_client_bridge_base.h ('k') | android_webview/browser/aw_cookie_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698