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

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

Issue 356543003: Audit the last usage of Geolocation and Notification permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Traverse the parent frames. Created 6 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
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "chrome/common/chrome_version_info.h" 15 #include "chrome/common/chrome_version_info.h"
16 #include "content/public/browser/content_browser_client.h" 16 #include "content/public/browser/content_browser_client.h"
17 17
18 #if defined(OS_ANDROID) 18 #if defined(OS_ANDROID)
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #endif 20 #endif
21 21
22 class Profile;
23
22 namespace base { 24 namespace base {
23 class CommandLine; 25 class CommandLine;
24 } 26 }
25 27
26 namespace content { 28 namespace content {
27 class QuotaPermissionContext; 29 class QuotaPermissionContext;
28 } 30 }
29 31
30 namespace extensions { 32 namespace extensions {
31 class BrowserPermissionsPolicyDelegate; 33 class BrowserPermissionsPolicyDelegate;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool user_gesture, 207 bool user_gesture,
206 base::Callback<void(bool)> result_callback, 208 base::Callback<void(bool)> result_callback,
207 base::Closure* cancel_callback) OVERRIDE; 209 base::Closure* cancel_callback) OVERRIDE;
208 virtual void RequestMidiSysExPermission( 210 virtual void RequestMidiSysExPermission(
209 content::WebContents* web_contents, 211 content::WebContents* web_contents,
210 int bridge_id, 212 int bridge_id,
211 const GURL& requesting_frame, 213 const GURL& requesting_frame,
212 bool user_gesture, 214 bool user_gesture,
213 base::Callback<void(bool)> result_callback, 215 base::Callback<void(bool)> result_callback,
214 base::Closure* cancel_callback) OVERRIDE; 216 base::Closure* cancel_callback) OVERRIDE;
217 virtual void UseContentSettingPermission(
218 content::WebContents* web_contents,
219 const GURL& primary_url,
220 const GURL& secondary_url,
221 const std::string& setting_type) OVERRIDE;
215 virtual void RequestProtectedMediaIdentifierPermission( 222 virtual void RequestProtectedMediaIdentifierPermission(
216 content::WebContents* web_contents, 223 content::WebContents* web_contents,
217 const GURL& origin, 224 const GURL& origin,
218 base::Callback<void(bool)> result_callback, 225 base::Callback<void(bool)> result_callback,
219 base::Closure* cancel_callback) OVERRIDE; 226 base::Closure* cancel_callback) OVERRIDE;
220 virtual bool CanCreateWindow(const GURL& opener_url, 227 virtual bool CanCreateWindow(const GURL& opener_url,
221 const GURL& opener_top_level_frame_url, 228 const GURL& opener_top_level_frame_url,
222 const GURL& source_origin, 229 const GURL& source_origin,
223 WindowContainerType container_type, 230 WindowContainerType container_type,
224 const GURL& target_url, 231 const GURL& target_url,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 prerender::PrerenderTracker* prerender_tracker_; 330 prerender::PrerenderTracker* prerender_tracker_;
324 331
325 friend class DisableWebRtcEncryptionFlagTest; 332 friend class DisableWebRtcEncryptionFlagTest;
326 333
327 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 334 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
328 }; 335 };
329 336
330 } // namespace chrome 337 } // namespace chrome
331 338
332 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 339 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698