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

Side by Side Diff: content/browser/android/download_controller.h

Issue 10693134: Revert 146000 - Split out ContentViewCore from ContentView for embedders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 // 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
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 GetContentViewCoreFromWebContents(WebContents* web_contents); 113 jobject GetContentViewFromWebContents(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_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_impl.cc ('k') | content/browser/android/download_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698