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

Unified Diff: android_webview/browser/net/aw_web_resource_response.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/net/aw_web_resource_response.h
diff --git a/android_webview/browser/net/aw_web_resource_response.h b/android_webview/browser/net/aw_web_resource_response.h
index 9a1e8197c59ccaf0b3428847678d4b647cdf8df0..9ecaa45c342f90d6c42423798f7fcf7946152b9c 100644
--- a/android_webview/browser/net/aw_web_resource_response.h
+++ b/android_webview/browser/net/aw_web_resource_response.h
@@ -5,11 +5,11 @@
#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_WEB_RESOURCE_RESPONSE_H_
#define ANDROID_WEBVIEW_BROWSER_NET_AW_WEB_RESOURCE_RESPONSE_H_
+#include <memory>
#include <string>
#include "base/android/jni_android.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace net {
class HttpResponseHeaders;
@@ -27,7 +27,7 @@ class AwWebResourceResponse {
public:
virtual ~AwWebResourceResponse() {}
- virtual scoped_ptr<InputStream> GetInputStream(JNIEnv* env) const = 0;
+ virtual std::unique_ptr<InputStream> GetInputStream(JNIEnv* env) const = 0;
virtual bool GetMimeType(JNIEnv* env, std::string* mime_type) const = 0;
virtual bool GetCharset(JNIEnv* env, std::string* charset) const = 0;
virtual bool GetStatusInfo(JNIEnv* env,
« no previous file with comments | « android_webview/browser/net/aw_url_request_job_factory.cc ('k') | android_webview/browser/net/init_native_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698