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

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

Issue 629183002: Replacing the OVERRIDE with override and FINAL with final in content/browser/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving Error in android Created 6 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
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | content/browser/android/edge_effect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 WebContents* web_contents; 70 WebContents* web_contents;
71 // Default copy constructor is used for passing this struct by value. 71 // Default copy constructor is used for passing this struct by value.
72 }; 72 };
73 struct JavaObject; 73 struct JavaObject;
74 friend struct DefaultSingletonTraits<DownloadControllerAndroidImpl>; 74 friend struct DefaultSingletonTraits<DownloadControllerAndroidImpl>;
75 DownloadControllerAndroidImpl(); 75 DownloadControllerAndroidImpl();
76 virtual ~DownloadControllerAndroidImpl(); 76 virtual ~DownloadControllerAndroidImpl();
77 77
78 // DownloadControllerAndroid implementation. 78 // DownloadControllerAndroid implementation.
79 virtual void CreateGETDownload(int render_process_id, int render_view_id, 79 virtual void CreateGETDownload(int render_process_id, int render_view_id,
80 int request_id) OVERRIDE; 80 int request_id) override;
81 virtual void OnDownloadStarted(DownloadItem* download_item) OVERRIDE; 81 virtual void OnDownloadStarted(DownloadItem* download_item) override;
82 virtual void StartContextMenuDownload( 82 virtual void StartContextMenuDownload(
83 const ContextMenuParams& params, WebContents* web_contents, 83 const ContextMenuParams& params, WebContents* web_contents,
84 bool is_link) OVERRIDE; 84 bool is_link) override;
85 virtual void DangerousDownloadValidated( 85 virtual void DangerousDownloadValidated(
86 WebContents* web_contents, int download_id, bool accept) OVERRIDE; 86 WebContents* web_contents, int download_id, bool accept) override;
87 87
88 // DownloadItem::Observer interface. 88 // DownloadItem::Observer interface.
89 virtual void OnDownloadUpdated(DownloadItem* item) OVERRIDE; 89 virtual void OnDownloadUpdated(DownloadItem* item) override;
90 90
91 typedef base::Callback<void(const DownloadInfoAndroid&)> 91 typedef base::Callback<void(const DownloadInfoAndroid&)>
92 GetDownloadInfoCB; 92 GetDownloadInfoCB;
93 void PrepareDownloadInfo(const GlobalRequestID& global_id, 93 void PrepareDownloadInfo(const GlobalRequestID& global_id,
94 const GetDownloadInfoCB& callback); 94 const GetDownloadInfoCB& callback);
95 void CheckPolicyAndLoadCookies(const DownloadInfoAndroid& info, 95 void CheckPolicyAndLoadCookies(const DownloadInfoAndroid& info,
96 const GetDownloadInfoCB& callback, 96 const GetDownloadInfoCB& callback,
97 const GlobalRequestID& global_id, 97 const GlobalRequestID& global_id,
98 const net::CookieList& cookie_list); 98 const net::CookieList& cookie_list);
99 void DoLoadCookies(const DownloadInfoAndroid& info, 99 void DoLoadCookies(const DownloadInfoAndroid& info,
(...skipping 21 matching lines...) Expand all
121 JavaObject* GetJavaObject(); 121 JavaObject* GetJavaObject();
122 122
123 JavaObject* java_object_; 123 JavaObject* java_object_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(DownloadControllerAndroidImpl); 125 DISALLOW_COPY_AND_ASSIGN(DownloadControllerAndroidImpl);
126 }; 126 };
127 127
128 } // namespace content 128 } // namespace content
129 129
130 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_IMPL_H_ 130 #endif // CONTENT_BROWSER_ANDROID_DOWNLOAD_CONTROLLER_ANDROID_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | content/browser/android/edge_effect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698