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

Side by Side Diff: android_webview/native/aw_picture.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, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory>
11
10 #include "base/android/jni_weak_ref.h" 12 #include "base/android/jni_weak_ref.h"
11 #include "base/android/scoped_java_ref.h" 13 #include "base/android/scoped_java_ref.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
15 #include "skia/ext/refptr.h" 16 #include "skia/ext/refptr.h"
16 17
17 class SkPicture; 18 class SkPicture;
18 19
19 namespace android_webview { 20 namespace android_webview {
20 21
21 class AwPicture { 22 class AwPicture {
22 public: 23 public:
23 AwPicture(skia::RefPtr<SkPicture> picture); 24 AwPicture(skia::RefPtr<SkPicture> picture);
(...skipping 11 matching lines...) Expand all
35 skia::RefPtr<SkPicture> picture_; 36 skia::RefPtr<SkPicture> picture_;
36 37
37 DISALLOW_IMPLICIT_CONSTRUCTORS(AwPicture); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(AwPicture);
38 }; 39 };
39 40
40 bool RegisterAwPicture(JNIEnv* env); 41 bool RegisterAwPicture(JNIEnv* env);
41 42
42 } // android_webview 43 } // android_webview
43 44
44 #endif // ANDROID_WEBVIEW_NATIVE_AW_PICTURE_ 45 #endif // ANDROID_WEBVIEW_NATIVE_AW_PICTURE_
OLDNEW
« no previous file with comments | « android_webview/native/aw_media_url_interceptor_unittest.cc ('k') | android_webview/native/aw_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698