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

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

Issue 786063002: Revert of Implement HasPermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 int render_process_id, 191 int render_process_id,
192 scoped_ptr<content::DesktopNotificationDelegate> delegate, 192 scoped_ptr<content::DesktopNotificationDelegate> delegate,
193 base::Closure* cancel_callback) override; 193 base::Closure* cancel_callback) override;
194 void RequestPermission( 194 void RequestPermission(
195 content::PermissionType permission, 195 content::PermissionType permission,
196 content::WebContents* web_contents, 196 content::WebContents* web_contents,
197 int bridge_id, 197 int bridge_id,
198 const GURL& requesting_frame, 198 const GURL& requesting_frame,
199 bool user_gesture, 199 bool user_gesture,
200 const base::Callback<void(bool)>& result_callback) override; 200 const base::Callback<void(bool)>& result_callback) override;
201 content::PermissionStatus GetPermissionStatus(
202 content::PermissionType permission,
203 content::BrowserContext* browser_context,
204 const GURL& requesting_origin,
205 const GURL& embedding_origin) override;
206 void CancelPermissionRequest(content::PermissionType permission, 201 void CancelPermissionRequest(content::PermissionType permission,
207 content::WebContents* web_contents, 202 content::WebContents* web_contents,
208 int bridge_id, 203 int bridge_id,
209 const GURL& requesting_frame) override; 204 const GURL& requesting_frame) override;
210 void RegisterPermissionUsage(content::PermissionType permission, 205 void RegisterPermissionUsage(content::PermissionType permission,
211 content::WebContents* web_contents, 206 content::WebContents* web_contents,
212 const GURL& frame_url, 207 const GURL& frame_url,
213 const GURL& main_frame_url) override; 208 const GURL& main_frame_url) override;
214 bool CanCreateWindow(const GURL& opener_url, 209 bool CanCreateWindow(const GURL& opener_url,
215 const GURL& opener_top_level_frame_url, 210 const GURL& opener_top_level_frame_url,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 332 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
338 333
339 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 334 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
340 335
341 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 336 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
342 }; 337 };
343 338
344 } // namespace chrome 339 } // namespace chrome
345 340
346 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 341 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698