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

Side by Side Diff: content/browser/web_contents/web_contents_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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual void OnCloseStarted() OVERRIDE; 268 virtual void OnCloseStarted() OVERRIDE;
269 virtual void SystemDragEnded() OVERRIDE; 269 virtual void SystemDragEnded() OVERRIDE;
270 virtual void UserGestureDone() OVERRIDE; 270 virtual void UserGestureDone() OVERRIDE;
271 virtual void SetClosedByUserGesture(bool value) OVERRIDE; 271 virtual void SetClosedByUserGesture(bool value) OVERRIDE;
272 virtual bool GetClosedByUserGesture() const OVERRIDE; 272 virtual bool GetClosedByUserGesture() const OVERRIDE;
273 virtual double GetZoomLevel() const OVERRIDE; 273 virtual double GetZoomLevel() const OVERRIDE;
274 virtual int GetZoomPercent(bool* enable_increment, 274 virtual int GetZoomPercent(bool* enable_increment,
275 bool* enable_decrement) const OVERRIDE; 275 bool* enable_decrement) const OVERRIDE;
276 virtual void ViewSource() OVERRIDE; 276 virtual void ViewSource() OVERRIDE;
277 virtual void ViewFrameSource(const GURL& url, 277 virtual void ViewFrameSource(const GURL& url,
278 const std::string& content_state) OVERRIDE; 278 const PageState& page_state) OVERRIDE;
279 virtual int GetMinimumZoomPercent() const OVERRIDE; 279 virtual int GetMinimumZoomPercent() const OVERRIDE;
280 virtual int GetMaximumZoomPercent() const OVERRIDE; 280 virtual int GetMaximumZoomPercent() const OVERRIDE;
281 virtual gfx::Size GetPreferredSize() const OVERRIDE; 281 virtual gfx::Size GetPreferredSize() const OVERRIDE;
282 virtual int GetContentRestrictions() const OVERRIDE; 282 virtual int GetContentRestrictions() const OVERRIDE;
283 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; 283 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
284 virtual bool HasOpener() const OVERRIDE; 284 virtual bool HasOpener() const OVERRIDE;
285 virtual void DidChooseColorInColorChooser(int color_chooser_id, 285 virtual void DidChooseColorInColorChooser(int color_chooser_id,
286 SkColor color) OVERRIDE; 286 SkColor color) OVERRIDE;
287 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; 287 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE;
288 virtual int DownloadImage(const GURL& url, 288 virtual int DownloadImage(const GURL& url,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 const GURL& target_url) OVERRIDE; 325 const GURL& target_url) OVERRIDE;
326 virtual void DidFailProvisionalLoadWithError( 326 virtual void DidFailProvisionalLoadWithError(
327 RenderViewHost* render_view_host, 327 RenderViewHost* render_view_host,
328 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) 328 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params)
329 OVERRIDE; 329 OVERRIDE;
330 virtual void DidNavigate( 330 virtual void DidNavigate(
331 RenderViewHost* render_view_host, 331 RenderViewHost* render_view_host,
332 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 332 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
333 virtual void UpdateState(RenderViewHost* render_view_host, 333 virtual void UpdateState(RenderViewHost* render_view_host,
334 int32 page_id, 334 int32 page_id,
335 const std::string& state) OVERRIDE; 335 const PageState& page_state) OVERRIDE;
336 virtual void UpdateTitle(RenderViewHost* render_view_host, 336 virtual void UpdateTitle(RenderViewHost* render_view_host,
337 int32 page_id, 337 int32 page_id,
338 const string16& title, 338 const string16& title,
339 base::i18n::TextDirection title_direction) OVERRIDE; 339 base::i18n::TextDirection title_direction) OVERRIDE;
340 virtual void UpdateEncoding(RenderViewHost* render_view_host, 340 virtual void UpdateEncoding(RenderViewHost* render_view_host,
341 const std::string& encoding) OVERRIDE; 341 const std::string& encoding) OVERRIDE;
342 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE; 342 virtual void UpdateTargetURL(int32 page_id, const GURL& url) OVERRIDE;
343 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; 343 virtual void Close(RenderViewHost* render_view_host) OVERRIDE;
344 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE; 344 virtual void RequestMove(const gfx::Rect& new_bounds) OVERRIDE;
345 virtual void SwappedOut(RenderViewHost* render_view_host) OVERRIDE; 345 virtual void SwappedOut(RenderViewHost* render_view_host) OVERRIDE;
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 // Maps the ids of pending image downloads to their callbacks 911 // Maps the ids of pending image downloads to their callbacks
912 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 912 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
913 ImageDownloadMap image_download_map_; 913 ImageDownloadMap image_download_map_;
914 914
915 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 915 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
916 }; 916 };
917 917
918 } // namespace content 918 } // namespace content
919 919
920 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 920 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698