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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents.h

Issue 10540064: Shorter name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | chrome/browser/ui/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) 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 111 static TabContents* GetOwningTabContentsForWebContents(
112 content::WebContents* contents); 112 content::WebContents* contents); // DEPRECATED
113 static const TabContents* GetOwningTabContentsForWebContents( 113 static const TabContents* GetOwningTabContentsForWebContents(
114 const content::WebContents* contents); // DEPRECATED
115 static TabContents* FromWebContents(content::WebContents* contents);
116 static const TabContents* FromWebContents(
114 const content::WebContents* contents); 117 const content::WebContents* contents);
115 118
116 // Returns the WebContents that this owns. 119 // Returns the WebContents that this owns.
117 content::WebContents* web_contents() const; 120 content::WebContents* web_contents() const;
118 121
119 // Returns the Profile that is associated with this TabContents. 122 // Returns the Profile that is associated with this TabContents.
120 Profile* profile() const; 123 Profile* profile() const;
121 124
122 // True if this TabContents is being torn down. 125 // True if this TabContents is being torn down.
123 bool in_destructor() const { return in_destructor_; } 126 bool in_destructor() const { return in_destructor_; }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 313
311 // The supporting objects need to outlive the WebContents dtor (as they may 314 // The supporting objects need to outlive the WebContents dtor (as they may
312 // be called upon during its execution). As a result, this must come last 315 // be called upon during its execution). As a result, this must come last
313 // in the list. 316 // in the list.
314 scoped_ptr<content::WebContents> web_contents_; 317 scoped_ptr<content::WebContents> web_contents_;
315 318
316 DISALLOW_COPY_AND_ASSIGN(TabContents); 319 DISALLOW_COPY_AND_ASSIGN(TabContents);
317 }; 320 };
318 321
319 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 322 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698