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

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

Issue 2617863003: Restore logic to unsubscribe from permission changes on frame change. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | content/browser/permissions/permission_service_context.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 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_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ 6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "content/public/browser/permission_type.h" 10 #include "content/public/browser/permission_type.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class PermissionSubscription; 63 class PermissionSubscription;
64 64
65 // WebContentsObserver 65 // WebContentsObserver
66 void RenderFrameHostChanged(RenderFrameHost* old_host, 66 void RenderFrameHostChanged(RenderFrameHost* old_host,
67 RenderFrameHost* new_host) override; 67 RenderFrameHost* new_host) override;
68 void FrameDeleted(RenderFrameHost* render_frame_host) override; 68 void FrameDeleted(RenderFrameHost* render_frame_host) override;
69 void DidNavigateAnyFrame(RenderFrameHost* render_frame_host, 69 void DidNavigateAnyFrame(RenderFrameHost* render_frame_host,
70 const LoadCommittedDetails& details, 70 const LoadCommittedDetails& details,
71 const FrameNavigateParams& params) override; 71 const FrameNavigateParams& params) override;
72 72
73 void CancelPendingOperations(RenderFrameHost*) const; 73 void CancelPendingOperations(RenderFrameHost*);
74 74
75 RenderFrameHost* render_frame_host_; 75 RenderFrameHost* render_frame_host_;
76 RenderProcessHost* render_process_host_; 76 RenderProcessHost* render_process_host_;
77 std::vector<std::unique_ptr<PermissionServiceImpl>> services_; 77 std::vector<std::unique_ptr<PermissionServiceImpl>> services_;
78 std::unordered_map<int, std::unique_ptr<PermissionSubscription>> 78 std::unordered_map<int, std::unique_ptr<PermissionSubscription>>
79 subscriptions_; 79 subscriptions_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(PermissionServiceContext); 81 DISALLOW_COPY_AND_ASSIGN(PermissionServiceContext);
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_ 86 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_SERVICE_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/permissions/permission_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698