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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 void OnCookieResponse(DownloadInfoAndroid info, | 104 void OnCookieResponse(DownloadInfoAndroid info, |
105 int render_process_id, | 105 int render_process_id, |
106 int render_view_id, | 106 int render_view_id, |
107 const std::string& cookie); | 107 const std::string& cookie); |
108 | 108 |
109 void StartAndroidDownload(const DownloadInfoAndroid& info, | 109 void StartAndroidDownload(const DownloadInfoAndroid& info, |
110 int render_process_id, | 110 int render_process_id, |
111 int render_view_id); | 111 int render_view_id); |
112 | 112 |
113 jobject GetContentViewFromWebContents(WebContents* web_contents); | 113 jobject GetContentViewCoreFromWebContents(WebContents* web_contents); |
114 jobject GetContentView(int render_process_id, int render_view_id); | 114 jobject GetContentView(int render_process_id, int render_view_id); |
115 | 115 |
116 // Creates Java object if it is not created already and returns it. | 116 // Creates Java object if it is not created already and returns it. |
117 JavaObject* GetJavaObject(); | 117 JavaObject* GetJavaObject(); |
118 | 118 |
119 JavaObject* java_object_; | 119 JavaObject* java_object_; |
120 | 120 |
121 DISALLOW_COPY_AND_ASSIGN(DownloadController); | 121 DISALLOW_COPY_AND_ASSIGN(DownloadController); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace content | 124 } // namespace content |
125 | 125 |
126 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_H_ | 126 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_H_ |
OLD | NEW |