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

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

Issue 22876014: Make RenderFrame{Host} objects routable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bleck Created 7 years, 3 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 const net::LoadStateWithParam& load_state, 349 const net::LoadStateWithParam& load_state,
350 uint64 upload_position, 350 uint64 upload_position,
351 uint64 upload_size); 351 uint64 upload_size);
352 352
353 bool SuddenTerminationAllowed() const; 353 bool SuddenTerminationAllowed() const;
354 void set_sudden_termination_allowed(bool enabled) { 354 void set_sudden_termination_allowed(bool enabled) {
355 sudden_termination_allowed_ = enabled; 355 sudden_termination_allowed_ = enabled;
356 } 356 }
357 357
358 // RenderWidgetHost public overrides. 358 // RenderWidgetHost public overrides.
359 virtual void Init() OVERRIDE;
359 virtual void Shutdown() OVERRIDE; 360 virtual void Shutdown() OVERRIDE;
360 virtual bool IsRenderView() const OVERRIDE; 361 virtual bool IsRenderView() const OVERRIDE;
361 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 362 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
362 virtual void GotFocus() OVERRIDE; 363 virtual void GotFocus() OVERRIDE;
363 virtual void LostCapture() OVERRIDE; 364 virtual void LostCapture() OVERRIDE;
364 virtual void LostMouseLock() OVERRIDE; 365 virtual void LostMouseLock() OVERRIDE;
365 virtual void ForwardMouseEvent( 366 virtual void ForwardMouseEvent(
366 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 367 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
367 virtual void OnPointerEventActivate() OVERRIDE; 368 virtual void OnPointerEventActivate() OVERRIDE;
368 virtual void ForwardKeyboardEvent( 369 virtual void ForwardKeyboardEvent(
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 int automation_id); 581 int automation_id);
581 void OnGetWindowSnapshot(const int snapshot_id); 582 void OnGetWindowSnapshot(const int snapshot_id);
582 583
583 #if defined(OS_MACOSX) || defined(OS_ANDROID) 584 #if defined(OS_MACOSX) || defined(OS_ANDROID)
584 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params); 585 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
585 #endif 586 #endif
586 587
587 private: 588 private:
588 friend class TestRenderViewHost; 589 friend class TestRenderViewHost;
589 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost); 590 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost);
591 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane);
592
593 // TODO(nasko): Remove this accessor once RenderFrameHost moves into the frame
594 // tree.
595 RenderFrameHostImpl* main_render_frame_host() const;
590 596
591 // Sets whether this RenderViewHost is swapped out in favor of another, 597 // Sets whether this RenderViewHost is swapped out in favor of another,
592 // and clears any waiting state that is no longer relevant. 598 // and clears any waiting state that is no longer relevant.
593 void SetSwappedOut(bool is_swapped_out); 599 void SetSwappedOut(bool is_swapped_out);
594 600
595 bool CanAccessFilesOfPageState(const PageState& state) const; 601 bool CanAccessFilesOfPageState(const PageState& state) const;
596 602
597 // This is an RenderFrameHost object associated with the top-level frame in 603 // This is an RenderFrameHost object associated with the top-level frame in
598 // the page rendered by this RenderViewHost. 604 // the page rendered by this RenderViewHost.
599 // TODO(nasko): Remove this pointer once we have enough infrastructure to 605 // TODO(nasko): Remove this pointer once we have enough infrastructure to
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 714 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
709 }; 715 };
710 716
711 #if defined(COMPILER_MSVC) 717 #if defined(COMPILER_MSVC)
712 #pragma warning(pop) 718 #pragma warning(pop)
713 #endif 719 #endif
714 720
715 } // namespace content 721 } // namespace content
716 722
717 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 723 #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