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

Side by Side Diff: content/browser/android/content_settings.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONTENT_SETTINGS_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
11 #include "content/public/browser/web_contents_observer.h" 11 #include "content/public/browser/web_contents_observer.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class ContentSettings : public WebContentsObserver { 15 class ContentSettings : public WebContentsObserver {
16 public: 16 public:
17 ContentSettings(JNIEnv* env, jobject obj, 17 ContentSettings(JNIEnv* env, jobject obj,
18 WebContents* contents); 18 WebContents* contents);
19 19
20 static bool RegisterContentSettings(JNIEnv* env); 20 static bool RegisterContentSettings(JNIEnv* env);
21 21
22 bool GetJavaScriptEnabled(JNIEnv* env, jobject obj); 22 bool GetJavaScriptEnabled(JNIEnv* env, jobject obj);
23 23
24 private: 24 private:
25 // Self-deletes when the underlying WebContents is destroyed. 25 // Self-deletes when the underlying WebContents is destroyed.
26 virtual ~ContentSettings(); 26 ~ContentSettings() override;
27 27
28 // WebContentsObserver overrides: 28 // WebContentsObserver overrides:
29 virtual void WebContentsDestroyed() override; 29 void WebContentsDestroyed() override;
30 30
31 // The Java counterpart to this class. 31 // The Java counterpart to this class.
32 JavaObjectWeakGlobalRef content_settings_; 32 JavaObjectWeakGlobalRef content_settings_;
33 }; 33 };
34 34
35 } // namespace content 35 } // namespace content
36 36
37 #endif // CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_ 37 #endif // CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_
OLDNEW
« no previous file with comments | « content/browser/android/composited_touch_handle_drawable.h ('k') | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698