OLD | NEW |
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 CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Helper to retrieve the existing instance that owns a given WebContents. | 101 // Helper to retrieve the existing instance that owns a given WebContents. |
102 // Returns NULL if there is no such existing instance. | 102 // Returns NULL if there is no such existing instance. |
103 // NOTE: This is not intended for general use. It is intended for situations | 103 // NOTE: This is not intended for general use. It is intended for situations |
104 // like callbacks from content/ where only a WebContents is available. In the | 104 // like callbacks from content/ where only a WebContents is available. In the |
105 // general case, please do NOT use this; plumb TabContents through the chrome/ | 105 // general case, please do NOT use this; plumb TabContents through the chrome/ |
106 // code instead of WebContents. | 106 // code instead of WebContents. |
107 static TabContents* GetCurrentWrapperForContents( | 107 static TabContents* GetCurrentWrapperForContents( |
108 content::WebContents* contents); // DEPRECATED | 108 content::WebContents* contents); // DEPRECATED |
109 static const TabContents* GetCurrentWrapperForContents( | 109 static const TabContents* GetCurrentWrapperForContents( |
110 const content::WebContents* contents); // DEPRECATED | 110 const content::WebContents* contents); // DEPRECATED |
111 static TabContents* GetOwningTabContentsForWebContents( | |
112 content::WebContents* contents); // DEPRECATED | |
113 static const TabContents* GetOwningTabContentsForWebContents( | |
114 const content::WebContents* contents); // DEPRECATED | |
115 static TabContents* FromWebContents(content::WebContents* contents); | 111 static TabContents* FromWebContents(content::WebContents* contents); |
116 static const TabContents* FromWebContents( | 112 static const TabContents* FromWebContents( |
117 const content::WebContents* contents); | 113 const content::WebContents* contents); |
118 | 114 |
119 // Returns the WebContents that this owns. | 115 // Returns the WebContents that this owns. |
120 content::WebContents* web_contents() const; | 116 content::WebContents* web_contents() const; |
121 | 117 |
122 // Returns the Profile that is associated with this TabContents. | 118 // Returns the Profile that is associated with this TabContents. |
123 Profile* profile() const; | 119 Profile* profile() const; |
124 | 120 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 309 |
314 // The supporting objects need to outlive the WebContents dtor (as they may | 310 // The supporting objects need to outlive the WebContents dtor (as they may |
315 // be called upon during its execution). As a result, this must come last | 311 // be called upon during its execution). As a result, this must come last |
316 // in the list. | 312 // in the list. |
317 scoped_ptr<content::WebContents> web_contents_; | 313 scoped_ptr<content::WebContents> web_contents_; |
318 | 314 |
319 DISALLOW_COPY_AND_ASSIGN(TabContents); | 315 DISALLOW_COPY_AND_ASSIGN(TabContents); |
320 }; | 316 }; |
321 | 317 |
322 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 318 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |