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 // This class pairs with DownloadController on Java side to forward requests | 5 // This class pairs with DownloadController on Java side to forward requests |
6 // for GET downloads to the current DownloadListener. POST downloads are | 6 // for GET downloads to the current DownloadListener. POST downloads are |
7 // handled on the native side. | 7 // handled on the native side. |
8 // | 8 // |
9 // Both classes are Singleton classes. C++ object owns Java object. | 9 // Both classes are Singleton classes. C++ object owns Java object. |
10 // | 10 // |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 void OnCookieResponse(DownloadInfoAndroid info, | 103 void OnCookieResponse(DownloadInfoAndroid info, |
104 int render_process_id, | 104 int render_process_id, |
105 int render_view_id, | 105 int render_view_id, |
106 const std::string& cookie); | 106 const std::string& cookie); |
107 | 107 |
108 void StartAndroidDownload(const DownloadInfoAndroid& info, | 108 void StartAndroidDownload(const DownloadInfoAndroid& info, |
109 int render_process_id, | 109 int render_process_id, |
110 int render_view_id); | 110 int render_view_id); |
111 | 111 |
112 jobject GetContentViewFromWebContents(WebContents* web_contents); | 112 jobject GetContentViewCoreFromWebContents(WebContents* web_contents); |
113 jobject GetContentView(int render_process_id, int render_view_id); | 113 jobject GetContentView(int render_process_id, int render_view_id); |
114 | 114 |
115 // Creates Java object if it is not created already and returns it. | 115 // Creates Java object if it is not created already and returns it. |
116 JavaObject* GetJavaObject(); | 116 JavaObject* GetJavaObject(); |
117 | 117 |
118 JavaObject* java_object_; | 118 JavaObject* java_object_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(DownloadController); | 120 DISALLOW_COPY_AND_ASSIGN(DownloadController); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace content | 123 } // namespace content |
124 | 124 |
125 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_H_ | 125 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_H_ |
OLD | NEW |