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

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

Issue 21388003: Move routing to RenderFrameHost instead of RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move global map to .cc file. Created 7 years, 4 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
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 const net::LoadStateWithParam& load_state, 347 const net::LoadStateWithParam& load_state,
348 uint64 upload_position, 348 uint64 upload_position,
349 uint64 upload_size); 349 uint64 upload_size);
350 350
351 bool SuddenTerminationAllowed() const; 351 bool SuddenTerminationAllowed() const;
352 void set_sudden_termination_allowed(bool enabled) { 352 void set_sudden_termination_allowed(bool enabled) {
353 sudden_termination_allowed_ = enabled; 353 sudden_termination_allowed_ = enabled;
354 } 354 }
355 355
356 // RenderWidgetHost public overrides. 356 // RenderWidgetHost public overrides.
357 virtual void Init() OVERRIDE;
357 virtual void Shutdown() OVERRIDE; 358 virtual void Shutdown() OVERRIDE;
358 virtual bool IsRenderView() const OVERRIDE; 359 virtual bool IsRenderView() const OVERRIDE;
359 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 360 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
360 virtual void GotFocus() OVERRIDE; 361 virtual void GotFocus() OVERRIDE;
361 virtual void LostCapture() OVERRIDE; 362 virtual void LostCapture() OVERRIDE;
362 virtual void LostMouseLock() OVERRIDE; 363 virtual void LostMouseLock() OVERRIDE;
363 virtual void ForwardMouseEvent( 364 virtual void ForwardMouseEvent(
364 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 365 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
365 virtual void OnPointerEventActivate() OVERRIDE; 366 virtual void OnPointerEventActivate() OVERRIDE;
366 virtual void ForwardKeyboardEvent( 367 virtual void ForwardKeyboardEvent(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 const base::Closure& callback); 437 const base::Closure& callback);
437 438
438 bool is_waiting_for_beforeunload_ack() { 439 bool is_waiting_for_beforeunload_ack() {
439 return is_waiting_for_beforeunload_ack_; 440 return is_waiting_for_beforeunload_ack_;
440 } 441 }
441 442
442 bool is_waiting_for_unload_ack() { 443 bool is_waiting_for_unload_ack() {
443 return is_waiting_for_unload_ack_; 444 return is_waiting_for_unload_ack_;
444 } 445 }
445 446
447 // TODO(nasko): Remove this accessor once RenderFrameHost moves into the frame
448 // tree.
449 RenderFrameHost* main_render_frame_host() const {
450 return main_render_frame_host_.get();
451 }
452
446 // Returns whether the given URL is allowed to commit in the current process. 453 // Returns whether the given URL is allowed to commit in the current process.
447 // This is a more conservative check than FilterURL, since it will be used to 454 // This is a more conservative check than FilterURL, since it will be used to
448 // kill processes that commit unauthorized URLs. 455 // kill processes that commit unauthorized URLs.
449 bool CanCommitURL(const GURL& url); 456 bool CanCommitURL(const GURL& url);
450 457
451 // Checks that the given renderer can request |url|, if not it sets it to 458 // Checks that the given renderer can request |url|, if not it sets it to
452 // about:blank. 459 // about:blank.
453 // empty_allowed must be set to false for navigations for security reasons. 460 // empty_allowed must be set to false for navigations for security reasons.
454 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, 461 static void FilterURL(ChildProcessSecurityPolicyImpl* policy,
455 const RenderProcessHost* process, 462 const RenderProcessHost* process,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 712 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
706 }; 713 };
707 714
708 #if defined(COMPILER_MSVC) 715 #if defined(COMPILER_MSVC)
709 #pragma warning(pop) 716 #pragma warning(pop)
710 #endif 717 #endif
711 718
712 } // namespace content 719 } // namespace content
713 720
714 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 721 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_frame_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698