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

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

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed code from web_contents_impl Created 8 years, 6 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 (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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 return accessibility_tree_; 413 return accessibility_tree_;
414 } 414 }
415 415
416 bool is_waiting_for_unload_ack_for_testing() { 416 bool is_waiting_for_unload_ack_for_testing() {
417 return is_waiting_for_unload_ack_; 417 return is_waiting_for_unload_ack_;
418 } 418 }
419 419
420 // Checks that the given renderer can request |url|, if not it sets it to 420 // Checks that the given renderer can request |url|, if not it sets it to
421 // about:blank. 421 // about:blank.
422 // empty_allowed must be set to false for navigations for security reasons. 422 // empty_allowed must be set to false for navigations for security reasons.
423 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, 423 static void FilterURL(content::ChildProcessSecurityPolicy* policy,
424 int renderer_id, 424 int renderer_id,
425 bool empty_allowed, 425 bool empty_allowed,
426 GURL* url); 426 GURL* url);
427 427
428 // NOTE: Do not add functions that just send an IPC message that are called in 428 // NOTE: Do not add functions that just send an IPC message that are called in
429 // one or two places. Have the caller send the IPC message directly (unless 429 // one or two places. Have the caller send the IPC message directly (unless
430 // the caller places are in different platforms, in which case it's better 430 // the caller places are in different platforms, in which case it's better
431 // to keep them consistent). 431 // to keep them consistent).
432 432
433 protected: 433 protected:
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 658 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
659 }; 659 };
660 660
661 #if defined(COMPILER_MSVC) 661 #if defined(COMPILER_MSVC)
662 #pragma warning(pop) 662 #pragma warning(pop)
663 #endif 663 #endif
664 664
665 } // namespace content 665 } // namespace content
666 666
667 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 667 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698