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

Side by Side Diff: android_webview/browser/aw_contents_io_thread_client.h

Issue 2425423004: Move NewDownload out of AwContentsIoThreadClientImpl to AwContentsClientBridge (Closed)
Patch Set: changed "even if" to "unless" Created 4 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This method is called on the IO thread only. 91 // This method is called on the IO thread only.
92 virtual bool ShouldBlockFileUrls() const = 0; 92 virtual bool ShouldBlockFileUrls() const = 0;
93 93
94 // Retrieve the BlockNetworkLoads setting value of this AwContents. 94 // Retrieve the BlockNetworkLoads setting value of this AwContents.
95 // This method is called on the IO thread only. 95 // This method is called on the IO thread only.
96 virtual bool ShouldBlockNetworkLoads() const = 0; 96 virtual bool ShouldBlockNetworkLoads() const = 0;
97 97
98 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents. 98 // Retrieve the AcceptThirdPartyCookies setting value of this AwContents.
99 virtual bool ShouldAcceptThirdPartyCookies() const = 0; 99 virtual bool ShouldAcceptThirdPartyCookies() const = 0;
100 100
101 // Called when ResourceDispathcerHost detects a download request.
102 // The download is already cancelled when this is called, since
103 // relevant for DownloadListener is already extracted.
104 virtual void NewDownload(const GURL& url,
105 const std::string& user_agent,
106 const std::string& content_disposition,
107 const std::string& mime_type,
108 int64_t content_length) = 0;
109
110 // Called when a new login request is detected. See the documentation for 101 // Called when a new login request is detected. See the documentation for
111 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account| 102 // WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
112 // may be empty. 103 // may be empty.
113 virtual void NewLoginRequest(const std::string& realm, 104 virtual void NewLoginRequest(const std::string& realm,
114 const std::string& account, 105 const std::string& account,
115 const std::string& args) = 0; 106 const std::string& args) = 0;
116 107
117 // Called when a resource loading error has occured (e.g. an I/O error, 108 // Called when a resource loading error has occured (e.g. an I/O error,
118 // host name lookup failure etc.) 109 // host name lookup failure etc.)
119 virtual void OnReceivedError(const net::URLRequest* request) = 0; 110 virtual void OnReceivedError(const net::URLRequest* request) = 0;
120 111
121 // Called when a response from the server is received with status code >= 400. 112 // Called when a response from the server is received with status code >= 400.
122 virtual void OnReceivedHttpError( 113 virtual void OnReceivedHttpError(
123 const net::URLRequest* request, 114 const net::URLRequest* request,
124 const net::HttpResponseHeaders* response_headers) = 0; 115 const net::HttpResponseHeaders* response_headers) = 0;
125 }; 116 };
126 117
127 } // namespace android_webview 118 } // namespace android_webview
128 119
129 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_ 120 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_IO_THREAD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698