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

Side by Side Diff: content/public/browser/web_contents.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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 namespace net { 33 namespace net {
34 struct LoadStateWithParam; 34 struct LoadStateWithParam;
35 } 35 }
36 36
37 namespace content { 37 namespace content {
38 38
39 class BrowserContext; 39 class BrowserContext;
40 class InterstitialPage; 40 class InterstitialPage;
41 class PageState;
41 class RenderProcessHost; 42 class RenderProcessHost;
42 class RenderViewHost; 43 class RenderViewHost;
43 class RenderWidgetHostView; 44 class RenderWidgetHostView;
44 class SiteInstance; 45 class SiteInstance;
45 class WebContentsDelegate; 46 class WebContentsDelegate;
46 class WebContentsView; 47 class WebContentsView;
47 struct RendererPreferences; 48 struct RendererPreferences;
48 49
49 // WebContents is the core class in content/. A WebContents renders web content 50 // WebContents is the core class in content/. A WebContents renders web content
50 // (usually HTML) in a rectangular area. 51 // (usually HTML) in a rectangular area.
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 virtual double GetZoomLevel() const = 0; 383 virtual double GetZoomLevel() const = 0;
383 384
384 // Gets the zoom percent for this tab. 385 // Gets the zoom percent for this tab.
385 virtual int GetZoomPercent(bool* enable_increment, 386 virtual int GetZoomPercent(bool* enable_increment,
386 bool* enable_decrement) const = 0; 387 bool* enable_decrement) const = 0;
387 388
388 // Opens view-source tab for this contents. 389 // Opens view-source tab for this contents.
389 virtual void ViewSource() = 0; 390 virtual void ViewSource() = 0;
390 391
391 virtual void ViewFrameSource(const GURL& url, 392 virtual void ViewFrameSource(const GURL& url,
392 const std::string& content_state)= 0; 393 const PageState& page_state)= 0;
393 394
394 // Gets the minimum/maximum zoom percent. 395 // Gets the minimum/maximum zoom percent.
395 virtual int GetMinimumZoomPercent() const = 0; 396 virtual int GetMinimumZoomPercent() const = 0;
396 virtual int GetMaximumZoomPercent() const = 0; 397 virtual int GetMaximumZoomPercent() const = 0;
397 398
398 // Gets the preferred size of the contents. 399 // Gets the preferred size of the contents.
399 virtual gfx::Size GetPreferredSize() const = 0; 400 virtual gfx::Size GetPreferredSize() const = 0;
400 401
401 // Get the content restrictions (see content::ContentRestriction). 402 // Get the content restrictions (see content::ContentRestriction).
402 virtual int GetContentRestrictions() const = 0; 403 virtual int GetContentRestrictions() const = 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 442
442 private: 443 private:
443 // This interface should only be implemented inside content. 444 // This interface should only be implemented inside content.
444 friend class WebContentsImpl; 445 friend class WebContentsImpl;
445 WebContents() {} 446 WebContents() {}
446 }; 447 };
447 448
448 } // namespace content 449 } // namespace content
449 450
450 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 451 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698