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

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

Issue 10696173: Revert "Revert 146000 - Split out ContentViewCore from ContentView for embedders." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase number deux 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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