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

Side by Side Diff: android_webview/native/aw_contents_io_thread_client_impl.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_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Implementation of AwContentsIoThreadClient. 53 // Implementation of AwContentsIoThreadClient.
54 bool PendingAssociation() const override; 54 bool PendingAssociation() const override;
55 CacheMode GetCacheMode() const override; 55 CacheMode GetCacheMode() const override;
56 void ShouldInterceptRequestAsync( 56 void ShouldInterceptRequestAsync(
57 const net::URLRequest* request, 57 const net::URLRequest* request,
58 const ShouldInterceptRequestResultCallback callback) override; 58 const ShouldInterceptRequestResultCallback callback) override;
59 bool ShouldBlockContentUrls() const override; 59 bool ShouldBlockContentUrls() const override;
60 bool ShouldBlockFileUrls() const override; 60 bool ShouldBlockFileUrls() const override;
61 bool ShouldAcceptThirdPartyCookies() const override; 61 bool ShouldAcceptThirdPartyCookies() const override;
62 bool ShouldBlockNetworkLoads() const override; 62 bool ShouldBlockNetworkLoads() const override;
63 void NewDownload(const GURL& url,
64 const std::string& user_agent,
65 const std::string& content_disposition,
66 const std::string& mime_type,
67 int64_t content_length) override;
68 void NewLoginRequest(const std::string& realm, 63 void NewLoginRequest(const std::string& realm,
69 const std::string& account, 64 const std::string& account,
70 const std::string& args) override; 65 const std::string& args) override;
71 void OnReceivedError(const net::URLRequest* request) override; 66 void OnReceivedError(const net::URLRequest* request) override;
72 void OnReceivedHttpError( 67 void OnReceivedHttpError(
73 const net::URLRequest* request, 68 const net::URLRequest* request,
74 const net::HttpResponseHeaders* response_headers) override; 69 const net::HttpResponseHeaders* response_headers) override;
75 70
76 private: 71 private:
77 bool pending_association_; 72 bool pending_association_;
78 base::android::ScopedJavaGlobalRef<jobject> java_object_; 73 base::android::ScopedJavaGlobalRef<jobject> java_object_;
79 base::android::ScopedJavaGlobalRef<jobject> bg_thread_client_object_; 74 base::android::ScopedJavaGlobalRef<jobject> bg_thread_client_object_;
80 75
81 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl); 76 DISALLOW_COPY_AND_ASSIGN(AwContentsIoThreadClientImpl);
82 }; 77 };
83 78
84 } // namespace android_webview 79 } // namespace android_webview
85 80
86 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_ 81 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_IO_THREAD_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698