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

Side by Side Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.h

Issue 8612007: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/geolocation/geolocation_permission_context.h" 10 #include "content/browser/geolocation/geolocation_permission_context.h"
(...skipping 11 matching lines...) Expand all
22 // Notifies whether or not the corresponding bridge is allowed to use 22 // Notifies whether or not the corresponding bridge is allowed to use
23 // geolocation via 23 // geolocation via
24 // GeolocationPermissionContext::SetGeolocationPermissionResponse(). 24 // GeolocationPermissionContext::SetGeolocationPermissionResponse().
25 void NotifyPermissionSet(int render_process_id, 25 void NotifyPermissionSet(int render_process_id,
26 int render_view_id, 26 int render_view_id,
27 int bridge_id, 27 int bridge_id,
28 const GURL& requesting_frame, 28 const GURL& requesting_frame,
29 bool allowed); 29 bool allowed);
30 30
31 // GeolocationPermissionContext 31 // GeolocationPermissionContext
32 virtual void RequestGeolocationPermission(int render_process_id, 32 virtual void RequestGeolocationPermission(
33 int render_view_id, 33 int render_process_id,
34 int bridge_id, 34 int render_view_id,
35 const GURL& requesting_frame); 35 int bridge_id,
36 const GURL& requesting_frame) OVERRIDE;
36 37
37 virtual void CancelGeolocationPermissionRequest(int render_process_id, 38 virtual void CancelGeolocationPermissionRequest(
38 int render_view_id, 39 int render_process_id,
39 int bridge_id, 40 int render_view_id,
40 const GURL& requesting_frame); 41 int bridge_id,
42 const GURL& requesting_frame) OVERRIDE;
41 43
42 private: 44 private:
43 virtual ~ChromeGeolocationPermissionContext(); 45 virtual ~ChromeGeolocationPermissionContext();
44 46
45 // Calls GeolocationArbitrator::OnPermissionGranted. 47 // Calls GeolocationArbitrator::OnPermissionGranted.
46 void NotifyArbitratorPermissionGranted(const GURL& requesting_frame); 48 void NotifyArbitratorPermissionGranted(const GURL& requesting_frame);
47 49
48 // Removes any pending InfoBar request. 50 // Removes any pending InfoBar request.
49 void CancelPendingInfoBarRequest(int render_process_id, 51 void CancelPendingInfoBarRequest(int render_process_id,
50 int render_view_id, 52 int render_view_id,
51 int bridge_id); 53 int bridge_id);
52 54
53 // This must only be accessed from the UI thread. 55 // This must only be accessed from the UI thread.
54 Profile* const profile_; 56 Profile* const profile_;
55 57
56 scoped_ptr<GeolocationInfoBarQueueController> 58 scoped_ptr<GeolocationInfoBarQueueController>
57 geolocation_infobar_queue_controller_; 59 geolocation_infobar_queue_controller_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContext); 61 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContext);
60 }; 62 };
61 63
62 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_ 64 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698