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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: dcheng comments - move checks to FrameLoader Created 3 years, 8 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 blink::WebPushClient* PushClient() override; 646 blink::WebPushClient* PushClient() override;
647 blink::WebPresentationClient* PresentationClient() override; 647 blink::WebPresentationClient* PresentationClient() override;
648 blink::WebRelatedAppsFetcher* GetRelatedAppsFetcher() override; 648 blink::WebRelatedAppsFetcher* GetRelatedAppsFetcher() override;
649 void WillStartUsingPeerConnectionHandler( 649 void WillStartUsingPeerConnectionHandler(
650 blink::WebRTCPeerConnectionHandler* handler) override; 650 blink::WebRTCPeerConnectionHandler* handler) override;
651 blink::WebUserMediaClient* UserMediaClient() override; 651 blink::WebUserMediaClient* UserMediaClient() override;
652 blink::WebEncryptedMediaClient* EncryptedMediaClient() override; 652 blink::WebEncryptedMediaClient* EncryptedMediaClient() override;
653 blink::WebString UserAgentOverride() override; 653 blink::WebString UserAgentOverride() override;
654 blink::WebString DoNotTrackValue() override; 654 blink::WebString DoNotTrackValue() override;
655 bool AllowWebGL(bool default_value) override; 655 bool AllowWebGL(bool default_value) override;
656 bool AllowContentInitiatedDataUrlNavigations(
657 const blink::WebURL& url) override;
656 blink::WebScreenOrientationClient* GetWebScreenOrientationClient() override; 658 blink::WebScreenOrientationClient* GetWebScreenOrientationClient() override;
657 void PostAccessibilityEvent(const blink::WebAXObject& obj, 659 void PostAccessibilityEvent(const blink::WebAXObject& obj,
658 blink::WebAXEvent event) override; 660 blink::WebAXEvent event) override;
659 void HandleAccessibilityFindInPageResult( 661 void HandleAccessibilityFindInPageResult(
660 int identifier, 662 int identifier,
661 int match_index, 663 int match_index,
662 const blink::WebAXObject& start_object, 664 const blink::WebAXObject& start_object,
663 int start_offset, 665 int start_offset,
664 const blink::WebAXObject& end_object, 666 const blink::WebAXObject& end_object,
665 int end_offset) override; 667 int end_offset) override;
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; 1430 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
1429 1431
1430 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1432 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1431 1433
1432 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1434 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1433 }; 1435 };
1434 1436
1435 } // namespace content 1437 } // namespace content
1436 1438
1437 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1439 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698