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

Side by Side Diff: android_webview/browser/aw_contents_io_thread_client.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_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 class InterceptedRequestData; 10 class InterceptedRequestData;
(...skipping 27 matching lines...) Expand all
38 // |render_process_id|, |render_view_id| pair. 38 // |render_process_id|, |render_view_id| pair.
39 // This method can be called from any thread. 39 // This method can be called from any thread.
40 // An empty scoped_ptr is a valid return value. 40 // An empty scoped_ptr is a valid return value.
41 static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id, 41 static scoped_ptr<AwContentsIoThreadClient> FromID(int render_process_id,
42 int render_view_id); 42 int render_view_id);
43 43
44 // This method is called on the IO thread only. 44 // This method is called on the IO thread only.
45 virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest( 45 virtual scoped_ptr<InterceptedRequestData> ShouldInterceptRequest(
46 const net::URLRequest* request) = 0; 46 const net::URLRequest* request) = 0;
47 47
48 // Retrieve the AllowContentAccess setting value of this AwContents.
49 // This method is called on the IO thread only.
50 virtual bool ShouldBlockContentUrls() const = 0;
51
52 // Retrieve the AllowFileAccess setting value of this AwContents.
53 // This method is called on the IO thread only.
54 virtual bool ShouldBlockFileUrls() const = 0;
55
48 // Retrieve the BlockNetworkLoads setting value of this AwContents. 56 // Retrieve the BlockNetworkLoads setting value of this AwContents.
49 // This method is called on the IO thread only. 57 // This method is called on the IO thread only.
50 virtual bool ShouldBlockNetworkLoads() const = 0; 58 virtual bool ShouldBlockNetworkLoads() const = 0;
51 }; 59 };
52 60
53 } // namespace android_webview 61 } // namespace android_webview
54 62
55 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 63 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698