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

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

Issue 11090003: [Android] Upstream WebView.allow{Content|File}Access implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments in AwSettings.java Created 8 years, 2 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 | Annotate | Revision Log
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 18 matching lines...) Expand all
29 // This should be called at most once per |web_contents|. 29 // This should be called at most once per |web_contents|.
30 static void Associate(content::WebContents* web_contents, 30 static void Associate(content::WebContents* web_contents,
31 const base::android::JavaRef<jobject>& jclient); 31 const base::android::JavaRef<jobject>& jclient);
32 32
33 AwContentsIoThreadClientImpl(const base::android::JavaRef<jobject>& jclient); 33 AwContentsIoThreadClientImpl(const base::android::JavaRef<jobject>& jclient);
34 virtual ~AwContentsIoThreadClientImpl() OVERRIDE; 34 virtual ~AwContentsIoThreadClientImpl() OVERRIDE;
35 35
36 // Implementation of AwContentsIoThreadClient. 36 // Implementation of AwContentsIoThreadClient.
37 virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest( 37 virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest(
38 const net::URLRequest* request) OVERRIDE; 38 const net::URLRequest* request) OVERRIDE;
39 virtual bool ShouldBlockContentUrls() const OVERRIDE;
40 virtual bool ShouldBlockFileUrls() const OVERRIDE;
39 virtual bool ShouldBlockNetworkLoads() const OVERRIDE; 41 virtual bool ShouldBlockNetworkLoads() const OVERRIDE;
40 42
41 private: 43 private:
42 base::android::ScopedJavaGlobalRef<jobject> java_object_; 44 base::android::ScopedJavaGlobalRef<jobject> java_object_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl); 46 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl);
45 }; 47 };
46 48
47 // JNI registration method. 49 // JNI registration method.
48 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env); 50 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env);
49 51
50 } // namespace android_webview 52 } // namespace android_webview
51 53
52 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ 54 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698