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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 7244009: Helper functions for tracking stale TabContentsDelegate's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Explicit constructor Created 9 years, 6 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
« no previous file with comments | « no previous file | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Intrinsic tab state ------------------------------------------------------- 92 // Intrinsic tab state -------------------------------------------------------
93 93
94 // Returns the property bag for this tab contents, where callers can add 94 // Returns the property bag for this tab contents, where callers can add
95 // extra data they may wish to associate with the tab. Returns a pointer 95 // extra data they may wish to associate with the tab. Returns a pointer
96 // rather than a reference since the PropertyAccessors expect this. 96 // rather than a reference since the PropertyAccessors expect this.
97 const PropertyBag* property_bag() const { return &property_bag_; } 97 const PropertyBag* property_bag() const { return &property_bag_; }
98 PropertyBag* property_bag() { return &property_bag_; } 98 PropertyBag* property_bag() { return &property_bag_; }
99 99
100 TabContentsDelegate* delegate() const { return delegate_; } 100 TabContentsDelegate* delegate() const { return delegate_; }
101 void set_delegate(TabContentsDelegate* d) { delegate_ = d; } 101 void set_delegate(TabContentsDelegate* delegate);
102 102
103 // Gets the controller for this tab contents. 103 // Gets the controller for this tab contents.
104 NavigationController& controller() { return controller_; } 104 NavigationController& controller() { return controller_; }
105 const NavigationController& controller() const { return controller_; } 105 const NavigationController& controller() const { return controller_; }
106 106
107 // Returns the user profile associated with this TabContents (via the 107 // Returns the user profile associated with this TabContents (via the
108 // NavigationController). 108 // NavigationController).
109 Profile* profile() const { return controller_.profile(); } 109 Profile* profile() const { return controller_.profile(); }
110 110
111 // Returns true if contains content rendered by an extension. 111 // Returns true if contains content rendered by an extension.
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 ObserverList<TabContentsObserver> observers_; 850 ObserverList<TabContentsObserver> observers_;
851 851
852 // Content restrictions, used to disable print/copy etc based on content's 852 // Content restrictions, used to disable print/copy etc based on content's
853 // (full-page plugins for now only) permissions. 853 // (full-page plugins for now only) permissions.
854 int content_restrictions_; 854 int content_restrictions_;
855 855
856 DISALLOW_COPY_AND_ASSIGN(TabContents); 856 DISALLOW_COPY_AND_ASSIGN(TabContents);
857 }; 857 };
858 858
859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698