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

Side by Side Diff: android_webview/native/aw_contents_io_thread_client_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 (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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_
7 7
8 #include "android_webview/browser/aw_contents_io_thread_client.h" 8 #include "android_webview/browser/aw_contents_io_thread_client.h"
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 24 matching lines...) Expand all
35 // Associates the |jclient| instance (which must implement the 35 // Associates the |jclient| instance (which must implement the
36 // AwContentsIoThreadClient Java interface) with the |web_contents|. 36 // AwContentsIoThreadClient Java interface) with the |web_contents|.
37 // This should be called at most once per |web_contents|. 37 // This should be called at most once per |web_contents|.
38 static void Associate(content::WebContents* web_contents, 38 static void Associate(content::WebContents* web_contents,
39 const base::android::JavaRef<jobject>& jclient); 39 const base::android::JavaRef<jobject>& jclient);
40 40
41 // Either |pending_associate| is true or |jclient| holds a non-null 41 // Either |pending_associate| is true or |jclient| holds a non-null
42 // Java object. 42 // Java object.
43 AwContentsIoThreadClientImpl(bool pending_associate, 43 AwContentsIoThreadClientImpl(bool pending_associate,
44 const base::android::JavaRef<jobject>& jclient); 44 const base::android::JavaRef<jobject>& jclient);
45 virtual ~AwContentsIoThreadClientImpl() override; 45 ~AwContentsIoThreadClientImpl() override;
46 46
47 // Implementation of AwContentsIoThreadClient. 47 // Implementation of AwContentsIoThreadClient.
48 virtual bool PendingAssociation() const override; 48 bool PendingAssociation() const override;
49 virtual CacheMode GetCacheMode() const override; 49 CacheMode GetCacheMode() const override;
50 virtual scoped_ptr<AwWebResourceResponse> ShouldInterceptRequest( 50 scoped_ptr<AwWebResourceResponse> ShouldInterceptRequest(
51 const GURL& location, 51 const GURL& location,
52 const net::URLRequest* request) override; 52 const net::URLRequest* request) override;
53 virtual bool ShouldBlockContentUrls() const override; 53 bool ShouldBlockContentUrls() const override;
54 virtual bool ShouldBlockFileUrls() const override; 54 bool ShouldBlockFileUrls() const override;
55 virtual bool ShouldAcceptThirdPartyCookies() const override; 55 bool ShouldAcceptThirdPartyCookies() const override;
56 virtual bool ShouldBlockNetworkLoads() const override; 56 bool ShouldBlockNetworkLoads() const override;
57 virtual void NewDownload(const GURL& url, 57 void NewDownload(const GURL& url,
58 const std::string& user_agent, 58 const std::string& user_agent,
59 const std::string& content_disposition, 59 const std::string& content_disposition,
60 const std::string& mime_type, 60 const std::string& mime_type,
61 int64 content_length) override; 61 int64 content_length) override;
62 virtual void NewLoginRequest(const std::string& realm, 62 void NewLoginRequest(const std::string& realm,
63 const std::string& account, 63 const std::string& account,
64 const std::string& args) override; 64 const std::string& args) override;
65 65
66 private: 66 private:
67 bool pending_association_; 67 bool pending_association_;
68 base::android::ScopedJavaGlobalRef<jobject> java_object_; 68 base::android::ScopedJavaGlobalRef<jobject> java_object_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl); 70 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl);
71 }; 71 };
72 72
73 // JNI registration method. 73 // JNI registration method.
74 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env); 74 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env);
75 75
76 } // namespace android_webview 76 } // namespace android_webview
77 77
78 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ 78 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698