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

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

Issue 14985014: Introduce content::PageState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to the top of page_state.h Created 7 years, 7 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 #if defined(OS_ANDROID) 54 #if defined(OS_ANDROID)
55 namespace media { 55 namespace media {
56 class MediaPlayerManager; 56 class MediaPlayerManager;
57 } 57 }
58 #endif 58 #endif
59 59
60 namespace content { 60 namespace content {
61 61
62 class ChildProcessSecurityPolicyImpl; 62 class ChildProcessSecurityPolicyImpl;
63 class PageState;
63 class PowerSaveBlocker; 64 class PowerSaveBlocker;
64 class RenderViewHostObserver; 65 class RenderViewHostObserver;
65 class RenderWidgetHostDelegate; 66 class RenderWidgetHostDelegate;
66 class SessionStorageNamespace; 67 class SessionStorageNamespace;
67 class SessionStorageNamespaceImpl; 68 class SessionStorageNamespaceImpl;
68 class TestRenderViewHost; 69 class TestRenderViewHost;
69 struct ContextMenuParams; 70 struct ContextMenuParams;
70 struct FileChooserParams; 71 struct FileChooserParams;
71 struct Referrer; 72 struct Referrer;
72 struct ShowDesktopNotificationHostMsgParams; 73 struct ShowDesktopNotificationHostMsgParams;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 475 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
475 int64 parent_frame_id, 476 int64 parent_frame_id,
476 bool main_frame, 477 bool main_frame,
477 const GURL& url); 478 const GURL& url);
478 void OnDidRedirectProvisionalLoad(int32 page_id, 479 void OnDidRedirectProvisionalLoad(int32 page_id,
479 const GURL& source_url, 480 const GURL& source_url,
480 const GURL& target_url); 481 const GURL& target_url);
481 void OnDidFailProvisionalLoadWithError( 482 void OnDidFailProvisionalLoadWithError(
482 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); 483 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
483 void OnNavigate(const IPC::Message& msg); 484 void OnNavigate(const IPC::Message& msg);
484 void OnUpdateState(int32 page_id, const std::string& state); 485 void OnUpdateState(int32 page_id, const PageState& state);
485 void OnUpdateTitle(int32 page_id, 486 void OnUpdateTitle(int32 page_id,
486 const string16& title, 487 const string16& title,
487 WebKit::WebTextDirection title_direction); 488 WebKit::WebTextDirection title_direction);
488 void OnUpdateEncoding(const std::string& encoding); 489 void OnUpdateEncoding(const std::string& encoding);
489 void OnUpdateTargetURL(int32 page_id, const GURL& url); 490 void OnUpdateTargetURL(int32 page_id, const GURL& url);
490 void OnClose(); 491 void OnClose();
491 void OnRequestMove(const gfx::Rect& pos); 492 void OnRequestMove(const gfx::Rect& pos);
492 void OnDidStartLoading(); 493 void OnDidStartLoading();
493 void OnDidStopLoading(); 494 void OnDidStopLoading();
494 void OnDidChangeLoadProgress(double load_progress); 495 void OnDidChangeLoadProgress(double load_progress);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 567
567 private: 568 private:
568 friend class TestRenderViewHost; 569 friend class TestRenderViewHost;
569 570
570 // Sets whether this RenderViewHost is swapped out in favor of another, 571 // Sets whether this RenderViewHost is swapped out in favor of another,
571 // and clears any waiting state that is no longer relevant. 572 // and clears any waiting state that is no longer relevant.
572 void SetSwappedOut(bool is_swapped_out); 573 void SetSwappedOut(bool is_swapped_out);
573 574
574 void ClearPowerSaveBlockers(); 575 void ClearPowerSaveBlockers();
575 576
576 bool CanAccessFilesOfSerializedState(const std::string& state) const; 577 bool CanAccessFilesOfPageState(const PageState& state) const;
577 578
578 // Our delegate, which wants to know about changes in the RenderView. 579 // Our delegate, which wants to know about changes in the RenderView.
579 RenderViewHostDelegate* delegate_; 580 RenderViewHostDelegate* delegate_;
580 581
581 // The SiteInstance associated with this RenderViewHost. All pages drawn 582 // The SiteInstance associated with this RenderViewHost. All pages drawn
582 // in this RenderViewHost are part of this SiteInstance. Should not change 583 // in this RenderViewHost are part of this SiteInstance. Should not change
583 // over time. 584 // over time.
584 scoped_refptr<SiteInstanceImpl> instance_; 585 scoped_refptr<SiteInstanceImpl> instance_;
585 586
586 // true if we are currently waiting for a response for drag context 587 // true if we are currently waiting for a response for drag context
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 697 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
697 }; 698 };
698 699
699 #if defined(COMPILER_MSVC) 700 #if defined(COMPILER_MSVC)
700 #pragma warning(pop) 701 #pragma warning(pop)
701 #endif 702 #endif
702 703
703 } // namespace content 704 } // namespace content
704 705
705 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 706 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698