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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 1011953003: Refactor Permissions related method out of ContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_type_enum_class
Patch Set: fix cros Created 5 years, 8 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_client.cc » ('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 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 net::SSLCertRequestInfo* cert_request_info, 170 net::SSLCertRequestInfo* cert_request_info,
171 scoped_ptr<content::ClientCertificateDelegate> delegate) override; 171 scoped_ptr<content::ClientCertificateDelegate> delegate) override;
172 void AddCertificate(net::CertificateMimeType cert_type, 172 void AddCertificate(net::CertificateMimeType cert_type,
173 const void* cert_data, 173 const void* cert_data,
174 size_t cert_size, 174 size_t cert_size,
175 int render_process_id, 175 int render_process_id,
176 int render_frame_id) override; 176 int render_frame_id) override;
177 content::MediaObserver* GetMediaObserver() override; 177 content::MediaObserver* GetMediaObserver() override;
178 content::PlatformNotificationService* GetPlatformNotificationService() 178 content::PlatformNotificationService* GetPlatformNotificationService()
179 override; 179 override;
180 void RequestPermission(
181 content::PermissionType permission,
182 content::WebContents* web_contents,
183 int bridge_id,
184 const GURL& requesting_frame,
185 bool user_gesture,
186 const base::Callback<void(content::PermissionStatus)>& callback) override;
187 content::PermissionStatus GetPermissionStatus(
188 content::PermissionType permission,
189 content::BrowserContext* browser_context,
190 const GURL& requesting_origin,
191 const GURL& embedding_origin) override;
192 void ResetPermission(
193 content::PermissionType permission,
194 content::BrowserContext* browser_context,
195 const GURL& requesting_origin,
196 const GURL& embedding_origin) override;
197 void CancelPermissionRequest(content::PermissionType permission,
198 content::WebContents* web_contents,
199 int bridge_id,
200 const GURL& requesting_frame) override;
201 void RegisterPermissionUsage(content::PermissionType permission,
202 content::WebContents* web_contents,
203 const GURL& frame_url,
204 const GURL& main_frame_url) override;
205 bool CanCreateWindow(const GURL& opener_url, 180 bool CanCreateWindow(const GURL& opener_url,
206 const GURL& opener_top_level_frame_url, 181 const GURL& opener_top_level_frame_url,
207 const GURL& source_origin, 182 const GURL& source_origin,
208 WindowContainerType container_type, 183 WindowContainerType container_type,
209 const GURL& target_url, 184 const GURL& target_url,
210 const content::Referrer& referrer, 185 const content::Referrer& referrer,
211 WindowOpenDisposition disposition, 186 WindowOpenDisposition disposition,
212 const blink::WebWindowFeatures& features, 187 const blink::WebWindowFeatures& features,
213 bool user_gesture, 188 bool user_gesture,
214 bool opener_suppressed, 189 bool opener_suppressed,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 308 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
334 309
335 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 310 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
336 311
337 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 312 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
338 }; 313 };
339 314
340 } // namespace chrome 315 } // namespace chrome
341 316
342 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 317 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698