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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 11313018: Prevent webview tags from navigating outside web-safe schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 436
437 bool is_waiting_for_unload_ack_for_testing() { 437 bool is_waiting_for_unload_ack_for_testing() {
438 return is_waiting_for_unload_ack_; 438 return is_waiting_for_unload_ack_;
439 } 439 }
440 440
441 // Checks that the given renderer can request |url|, if not it sets it to 441 // Checks that the given renderer can request |url|, if not it sets it to
442 // about:blank. 442 // about:blank.
443 // empty_allowed must be set to false for navigations for security reasons. 443 // empty_allowed must be set to false for navigations for security reasons.
444 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, 444 static void FilterURL(ChildProcessSecurityPolicyImpl* policy,
445 int renderer_id, 445 const RenderProcessHost* process,
446 bool empty_allowed, 446 bool empty_allowed,
447 GURL* url); 447 GURL* url);
448 448
449 // NOTE: Do not add functions that just send an IPC message that are called in 449 // NOTE: Do not add functions that just send an IPC message that are called in
450 // one or two places. Have the caller send the IPC message directly (unless 450 // one or two places. Have the caller send the IPC message directly (unless
451 // the caller places are in different platforms, in which case it's better 451 // the caller places are in different platforms, in which case it's better
452 // to keep them consistent). 452 // to keep them consistent).
453 453
454 protected: 454 protected:
455 friend class RenderViewHostObserver; 455 friend class RenderViewHostObserver;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 699 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
700 }; 700 };
701 701
702 #if defined(COMPILER_MSVC) 702 #if defined(COMPILER_MSVC)
703 #pragma warning(pop) 703 #pragma warning(pop)
704 #endif 704 #endif
705 705
706 } // namespace content 706 } // namespace content
707 707
708 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 708 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698