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

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

Issue 9815030: Merge parts of 117417 from trunk. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 } 398 }
399 399
400 const webkit_glue::WebAccessibility& accessibility_tree_for_testing() { 400 const webkit_glue::WebAccessibility& accessibility_tree_for_testing() {
401 return accessibility_tree_; 401 return accessibility_tree_;
402 } 402 }
403 403
404 bool is_waiting_for_unload_ack_for_testing() { 404 bool is_waiting_for_unload_ack_for_testing() {
405 return is_waiting_for_unload_ack_; 405 return is_waiting_for_unload_ack_;
406 } 406 }
407 407
408 // Checks that the given renderer can request |url|, if not it sets it to an 408 // Checks that the given renderer can request |url|, if not it sets it to
409 // empty url. 409 // about:blank.
410 // empty_allowed must be set to false for navigations for security reasons.
410 static void FilterURL(ChildProcessSecurityPolicy* policy, 411 static void FilterURL(ChildProcessSecurityPolicy* policy,
411 int renderer_id, 412 int renderer_id,
413 bool empty_allowed,
412 GURL* url); 414 GURL* url);
413 415
414 // Sets the alternate error page URL (link doctor) for the renderer process. 416 // Sets the alternate error page URL (link doctor) for the renderer process.
415 void SetAltErrorPageURL(const GURL& url); 417 void SetAltErrorPageURL(const GURL& url);
416 418
417 // Asks the renderer to exit fullscreen 419 // Asks the renderer to exit fullscreen
418 void ExitFullscreen(); 420 void ExitFullscreen();
419 421
420 // Passes a list of Webkit preferences to the renderer. 422 // Passes a list of Webkit preferences to the renderer.
421 void UpdateWebkitPreferences(const WebPreferences& prefs); 423 void UpdateWebkitPreferences(const WebPreferences& prefs);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 697 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
696 PowerSaveBlockerMap power_save_blockers_; 698 PowerSaveBlockerMap power_save_blockers_;
697 699
698 // A list of observers that filter messages. Weak references. 700 // A list of observers that filter messages. Weak references.
699 ObserverList<content::RenderViewHostObserver> observers_; 701 ObserverList<content::RenderViewHostObserver> observers_;
700 702
701 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 703 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
702 }; 704 };
703 705
704 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698