| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_contents_io_thread_client.h" | 10 #include "android_webview/browser/aw_contents_io_thread_client.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // Implementation of AwContentsIoThreadClient. | 48 // Implementation of AwContentsIoThreadClient. |
| 49 bool PendingAssociation() const override; | 49 bool PendingAssociation() const override; |
| 50 CacheMode GetCacheMode() const override; | 50 CacheMode GetCacheMode() const override; |
| 51 void ShouldInterceptRequestAsync( | 51 void ShouldInterceptRequestAsync( |
| 52 const net::URLRequest* request, | 52 const net::URLRequest* request, |
| 53 const ShouldInterceptRequestResultCallback callback) override; | 53 const ShouldInterceptRequestResultCallback callback) override; |
| 54 bool ShouldBlockContentUrls() const override; | 54 bool ShouldBlockContentUrls() const override; |
| 55 bool ShouldBlockFileUrls() const override; | 55 bool ShouldBlockFileUrls() const override; |
| 56 bool ShouldAcceptThirdPartyCookies() const override; | 56 bool ShouldAcceptThirdPartyCookies() const override; |
| 57 bool GetSafeBrowsingEnabled() const override; |
| 57 bool ShouldBlockNetworkLoads() const override; | 58 bool ShouldBlockNetworkLoads() const override; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 bool pending_association_; | 61 bool pending_association_; |
| 61 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 62 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 62 base::android::ScopedJavaGlobalRef<jobject> bg_thread_client_object_; | 63 base::android::ScopedJavaGlobalRef<jobject> bg_thread_client_object_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl); | 65 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace android_webview | 68 } // namespace android_webview |
| 68 | 69 |
| 69 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ | 70 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ |
| OLD | NEW |