Hide knowledge of webkit::ppapi::PluginDelegate from chrome. This is part of moving ppapi implementation from webkit/plugins/ppapi to content/renderer.
Chrome used four methods on that interface for PDFs.
-DidStartLoading/DidStopLoading: I just exposed these methods from RenderViewImpl on the RenderView interface
-SetContentRestriction: I moved this functionality completely into chrome. This allows us to get rid of all the content restrictions related methods in the content API, and to move content_restriction.h out to chrome.
-SaveURLAs: exposed the internal SaveURL method on WebContents
BUG=263054
[email protected]
Review URL: https://codereview.chromium.org/19800005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213027 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 06f741e..8afadd8 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -264,6 +264,8 @@
virtual bool SavePage(const base::FilePath& main_file,
const base::FilePath& dir_path,
SavePageType save_type) OVERRIDE;
+ virtual void SaveFrame(const GURL& url,
+ const Referrer& referrer) OVERRIDE;
virtual void GenerateMHTML(
const base::FilePath& file,
const base::Callback<void(const base::FilePath&, int64)>& callback)
@@ -289,7 +291,6 @@
virtual int GetMinimumZoomPercent() const OVERRIDE;
virtual int GetMaximumZoomPercent() const OVERRIDE;
virtual gfx::Size GetPreferredSize() const OVERRIDE;
- virtual int GetContentRestrictions() const OVERRIDE;
virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE;
virtual bool HasOpener() const OVERRIDE;
virtual void DidChooseColorInColorChooser(SkColor color) OVERRIDE;
@@ -571,12 +572,10 @@
bool is_main_frame,
int error_code,
const string16& error_description);
- void OnUpdateContentRestrictions(int restrictions);
void OnGoToEntryAtOffset(int offset);
void OnUpdateZoomLimits(int minimum_percent,
int maximum_percent,
bool remember);
- void OnSaveURL(const GURL& url, const Referrer& referrer);
void OnEnumerateDirectory(int request_id, const base::FilePath& path);
void OnJSOutOfMemory();
@@ -736,11 +735,6 @@
void SetEncoding(const std::string& encoding);
- // Save a URL to the local filesystem.
- void SaveURL(const GURL& url,
- const Referrer& referrer,
- bool is_main_frame);
-
RenderViewHostImpl* GetRenderViewHostImpl();
FrameTreeNode* FindFrameTreeNodeByID(int64 frame_id);
@@ -915,10 +909,6 @@
// The intrinsic size of the page.
gfx::Size preferred_size_;
- // Content restrictions, used to disable print/copy etc based on content's
- // (full-page plugins for now only) permissions.
- int content_restrictions_;
-
#if defined(OS_ANDROID)
// Date time chooser opened by this tab.
// Only used in Android since all other platforms use a multi field UI.