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

Unified Diff: chrome/browser/ui/tab_contents/core_tab_helper.h

Issue 19800005: Hide knowledge of webkit::ppapi::PluginDelegate from chrome. This is part of moving ppapi implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_contents/core_tab_helper.h
===================================================================
--- chrome/browser/ui/tab_contents/core_tab_helper.h (revision 212906)
+++ chrome/browser/ui/tab_contents/core_tab_helper.h (working copy)
@@ -39,6 +39,8 @@
// Set the time during close when the tab is no longer visible.
void OnUnloadDetachedStarted();
+ void UpdateContentRestrictions(int content_restrictions);
+
CoreTabHelperDelegate* delegate() const { return delegate_; }
void set_delegate(CoreTabHelperDelegate* d) { delegate_ = d; }
@@ -47,12 +49,15 @@
}
base::TimeTicks new_tab_start_time() const { return new_tab_start_time_; }
+ int content_restrictions() const { return content_restrictions_; }
private:
explicit CoreTabHelper(content::WebContents* web_contents);
friend class content::WebContentsUserData<CoreTabHelper>;
// content::WebContentsObserver overrides:
+ virtual void DidStartLoading(
+ content::RenderViewHost* render_view_host) OVERRIDE;
virtual void WasShown() OVERRIDE;
virtual void WebContentsDestroyed(
content::WebContents* web_contents) OVERRIDE;
@@ -75,6 +80,10 @@
// The time when the tab was removed from view during close.
base::TimeTicks unload_detached_start_time_;
+ // Content restrictions, used to disable print/copy etc based on content's
+ // (full-page plugins for now only) permissions.
+ int content_restrictions_;
+
DISALLOW_COPY_AND_ASSIGN(CoreTabHelper);
};

Powered by Google App Engine
This is Rietveld 408576698