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

Side by Side Diff: content/browser/permissions/permission_service_impl.h

Issue 823713002: Standardize usage of virtual/override/final specifiers in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/browser/permissions/permission_service_context.h" 11 #include "content/browser/permissions/permission_service_context.h"
12 #include "content/common/permission_service.mojom.h" 12 #include "content/common/permission_service.mojom.h"
13 #include "content/public/browser/permission_type.h" 13 #include "content/public/browser/permission_type.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 // Implements the PermissionService Mojo interface. 17 // Implements the PermissionService Mojo interface.
18 // This service can be created from a RenderFrameHost or a RenderProcessHost. 18 // This service can be created from a RenderFrameHost or a RenderProcessHost.
19 // It is owned by a PermissionServiceContext. 19 // It is owned by a PermissionServiceContext.
20 // It receives at PermissionServiceContext instance when created which allows it 20 // It receives at PermissionServiceContext instance when created which allows it
21 // to have some information about the current context. That enables the service 21 // to have some information about the current context. That enables the service
22 // to know whether it can show UI and have knowledge of the associated 22 // to know whether it can show UI and have knowledge of the associated
23 // WebContents for example. 23 // WebContents for example.
24 class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> { 24 class PermissionServiceImpl : public mojo::InterfaceImpl<PermissionService> {
25 public: 25 public:
26 virtual ~PermissionServiceImpl(); 26 ~PermissionServiceImpl() override;
27 27
28 // Clear pending permissions associated with a given frame and request the 28 // Clear pending permissions associated with a given frame and request the
29 // browser to cancel the permission requests. 29 // browser to cancel the permission requests.
30 void CancelPendingRequests(); 30 void CancelPendingRequests();
31 31
32 protected: 32 protected:
33 friend PermissionServiceContext; 33 friend PermissionServiceContext;
34 34
35 PermissionServiceImpl(PermissionServiceContext* context); 35 PermissionServiceImpl(PermissionServiceContext* context);
36 36
(...skipping 28 matching lines...) Expand all
65 // context_ owns |this|. 65 // context_ owns |this|.
66 PermissionServiceContext* context_; 66 PermissionServiceContext* context_;
67 base::WeakPtrFactory<PermissionServiceImpl> weak_factory_; 67 base::WeakPtrFactory<PermissionServiceImpl> weak_factory_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PermissionServiceImpl); 69 DISALLOW_COPY_AND_ASSIGN(PermissionServiceImpl);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_ 74 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/permissions/permission_service_context.h ('k') | content/browser/power_usage_monitor_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698