| 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);
|
| };
|
|
|
|
|