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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: adjust a comment Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 // where it is applicable. This is a more conservative check than 793 // where it is applicable. This is a more conservative check than
794 // RenderProcessHost::FilterURL, since it will be used to kill processes that 794 // RenderProcessHost::FilterURL, since it will be used to kill processes that
795 // commit unauthorized origins. 795 // commit unauthorized origins.
796 bool CanCommitOrigin(const url::Origin& origin, const GURL& url); 796 bool CanCommitOrigin(const url::Origin& origin, const GURL& url);
797 797
798 // Asserts that the given RenderFrameHostImpl is part of the same browser 798 // Asserts that the given RenderFrameHostImpl is part of the same browser
799 // context (and crashes if not), then returns whether the given frame is 799 // context (and crashes if not), then returns whether the given frame is
800 // part of the same site instance. 800 // part of the same site instance.
801 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); 801 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host);
802 802
803 // Informs the content client that geolocation permissions were used.
804 void DidUseGeolocationPermission();
805
806 // Returns whether the current RenderProcessHost has read access to all the 803 // Returns whether the current RenderProcessHost has read access to all the
807 // files reported in |state|. 804 // files reported in |state|.
808 bool CanAccessFilesOfPageState(const PageState& state); 805 bool CanAccessFilesOfPageState(const PageState& state);
809 806
810 // Grants the current RenderProcessHost read access to any file listed in 807 // Grants the current RenderProcessHost read access to any file listed in
811 // |validated_state|. It is important that the PageState has been validated 808 // |validated_state|. It is important that the PageState has been validated
812 // upon receipt from the renderer process to prevent it from forging access to 809 // upon receipt from the renderer process to prevent it from forging access to
813 // files without the user's consent. 810 // files without the user's consent.
814 void GrantFileAccessFromPageState(const PageState& validated_state); 811 void GrantFileAccessFromPageState(const PageState& validated_state);
815 812
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 1165
1169 // NOTE: This must be the last member. 1166 // NOTE: This must be the last member.
1170 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1167 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1171 1168
1172 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1169 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1173 }; 1170 };
1174 1171
1175 } // namespace content 1172 } // namespace content
1176 1173
1177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1174 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698