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

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

Powered by Google App Engine
This is Rietveld 408576698