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

Side by Side Diff: content/browser/android/java/gin_java_bound_object_delegate.h

Issue 897773002: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_
6 #define CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_ 6 #define CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/browser/android/java/gin_java_bound_object.h" 9 #include "content/browser/android/java/gin_java_bound_object.h"
10 #include "content/browser/android/java/gin_java_method_invocation_helper.h" 10 #include "content/browser/android/java/gin_java_method_invocation_helper.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class GinJavaBoundObjectDelegate 14 class GinJavaBoundObjectDelegate
15 : public GinJavaMethodInvocationHelper::ObjectDelegate { 15 : public GinJavaMethodInvocationHelper::ObjectDelegate {
16 public: 16 public:
17 GinJavaBoundObjectDelegate(scoped_refptr<GinJavaBoundObject> object); 17 GinJavaBoundObjectDelegate(scoped_refptr<GinJavaBoundObject> object);
18 virtual ~GinJavaBoundObjectDelegate(); 18 ~GinJavaBoundObjectDelegate() override;
19 19
20 virtual base::android::ScopedJavaLocalRef<jobject> GetLocalRef( 20 base::android::ScopedJavaLocalRef<jobject> GetLocalRef(JNIEnv* env) override;
21 base::android::ScopedJavaLocalRef<jclass> GetLocalClassRef(
21 JNIEnv* env) override; 22 JNIEnv* env) override;
22 virtual base::android::ScopedJavaLocalRef<jclass> GetLocalClassRef( 23 const JavaMethod* FindMethod(const std::string& method_name,
23 JNIEnv* env) override; 24 size_t num_parameters) override;
24 virtual const JavaMethod* FindMethod(const std::string& method_name, 25 bool IsObjectGetClassMethod(const JavaMethod* method) override;
25 size_t num_parameters) override; 26 const base::android::JavaRef<jclass>& GetSafeAnnotationClass() override;
26 virtual bool IsObjectGetClassMethod(const JavaMethod* method) override;
27 virtual const base::android::JavaRef<jclass>& GetSafeAnnotationClass()
28 override;
29 27
30 private: 28 private:
31 scoped_refptr<GinJavaBoundObject> object_; 29 scoped_refptr<GinJavaBoundObject> object_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(GinJavaBoundObjectDelegate); 31 DISALLOW_COPY_AND_ASSIGN(GinJavaBoundObjectDelegate);
34 }; 32 };
35 33
36 } // namespace content 34 } // namespace content
37 35
38 #endif // CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_ 36 #endif // CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BOUND_OBJECT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698