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

Side by Side Diff: android_webview/native/aw_message_port_service_impl.h

Issue 893343002: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MESSAGE_PORT_SERVICE_IMPL_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_MESSAGE_PORT_SERVICE_IMPL_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_MESSAGE_PORT_SERVICE_IMPL_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_MESSAGE_PORT_SERVICE_IMPL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 10
11 #include "android_webview/browser/aw_message_port_service.h" 11 #include "android_webview/browser/aw_message_port_service.h"
12 #include "base/android/jni_weak_ref.h" 12 #include "base/android/jni_weak_ref.h"
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 16
17 namespace android_webview { 17 namespace android_webview {
18 18
19 // This class is the native peer of AwMessagePortService.java. Please see the 19 // This class is the native peer of AwMessagePortService.java. Please see the
20 // java class for an explanation of use, ownership and lifetime. 20 // java class for an explanation of use, ownership and lifetime.
21 21
22 // Threading: Created and initialized on UI thread. For other methods, see 22 // Threading: Created and initialized on UI thread. For other methods, see
23 // the method level DCHECKS or documentation. 23 // the method level DCHECKS or documentation.
24 class AwMessagePortServiceImpl : public AwMessagePortService { 24 class AwMessagePortServiceImpl : public AwMessagePortService {
25 public: 25 public:
26 static AwMessagePortServiceImpl* GetInstance(); 26 static AwMessagePortServiceImpl* GetInstance();
27 27
28 AwMessagePortServiceImpl(); 28 AwMessagePortServiceImpl();
29 ~AwMessagePortServiceImpl(); 29 ~AwMessagePortServiceImpl() override;
30 void Init(JNIEnv* env, jobject object); 30 void Init(JNIEnv* env, jobject object);
31 31
32 void CreateMessageChannel(JNIEnv* env, jobject callback, 32 void CreateMessageChannel(JNIEnv* env, jobject callback,
33 scoped_refptr<AwMessagePortMessageFilter> filter); 33 scoped_refptr<AwMessagePortMessageFilter> filter);
34 34
35 // AwMessagePortService implementation 35 // AwMessagePortService implementation
36 void OnConvertedWebToAppMessage( 36 void OnConvertedWebToAppMessage(
37 int message_port_id, 37 int message_port_id,
38 const base::ListValue& message, 38 const base::ListValue& message,
39 const std::vector<int>& sent_message_port_ids) override; 39 const std::vector<int>& sent_message_port_ids) override;
(...skipping 26 matching lines...) Expand all
66 MessagePorts ports_; // Access on IO thread 66 MessagePorts ports_; // Access on IO thread
67 67
68 DISALLOW_COPY_AND_ASSIGN(AwMessagePortServiceImpl); 68 DISALLOW_COPY_AND_ASSIGN(AwMessagePortServiceImpl);
69 }; 69 };
70 70
71 bool RegisterAwMessagePortService(JNIEnv* env); 71 bool RegisterAwMessagePortService(JNIEnv* env);
72 72
73 } // namespace android_webview 73 } // namespace android_webview
74 74
75 #endif // ANDROID_WEBVIEW_NATIVE_AW_MESSAGE_PORT_SERVICE_IMPL_H_ 75 #endif // ANDROID_WEBVIEW_NATIVE_AW_MESSAGE_PORT_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_media_url_interceptor.h ('k') | android_webview/native/aw_pdf_exporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698