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

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: fix up unit test 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 // where it is applicable. This is a more conservative check than 787 // where it is applicable. This is a more conservative check than
788 // RenderProcessHost::FilterURL, since it will be used to kill processes that 788 // RenderProcessHost::FilterURL, since it will be used to kill processes that
789 // commit unauthorized origins. 789 // commit unauthorized origins.
790 bool CanCommitOrigin(const url::Origin& origin, const GURL& url); 790 bool CanCommitOrigin(const url::Origin& origin, const GURL& url);
791 791
792 // Asserts that the given RenderFrameHostImpl is part of the same browser 792 // Asserts that the given RenderFrameHostImpl is part of the same browser
793 // context (and crashes if not), then returns whether the given frame is 793 // context (and crashes if not), then returns whether the given frame is
794 // part of the same site instance. 794 // part of the same site instance.
795 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host); 795 bool IsSameSiteInstance(RenderFrameHostImpl* other_render_frame_host);
796 796
797 // Informs the content client that geolocation permissions were used.
798 void DidUseGeolocationPermission();
799
800 // Returns whether the current RenderProcessHost has read access to all the 797 // Returns whether the current RenderProcessHost has read access to all the
801 // files reported in |state|. 798 // files reported in |state|.
802 bool CanAccessFilesOfPageState(const PageState& state); 799 bool CanAccessFilesOfPageState(const PageState& state);
803 800
804 // Grants the current RenderProcessHost read access to any file listed in 801 // Grants the current RenderProcessHost read access to any file listed in
805 // |validated_state|. It is important that the PageState has been validated 802 // |validated_state|. It is important that the PageState has been validated
806 // upon receipt from the renderer process to prevent it from forging access to 803 // upon receipt from the renderer process to prevent it from forging access to
807 // files without the user's consent. 804 // files without the user's consent.
808 void GrantFileAccessFromPageState(const PageState& validated_state); 805 void GrantFileAccessFromPageState(const PageState& validated_state);
809 806
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 1153
1157 // NOTE: This must be the last member. 1154 // NOTE: This must be the last member.
1158 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1155 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1159 1156
1160 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1157 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1161 }; 1158 };
1162 1159
1163 } // namespace content 1160 } // namespace content
1164 1161
1165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1162 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698