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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
248 } | 248 } |
249 | 249 |
250 ZoomController* zoom_controller() { | 250 ZoomController* zoom_controller() { |
251 return zoom_controller_.get(); | 251 return zoom_controller_.get(); |
252 } | 252 } |
253 | 253 |
254 // Overrides ----------------------------------------------------------------- | 254 // Overrides ----------------------------------------------------------------- |
255 | 255 |
256 // content::WebContentsObserver overrides: | 256 // content::WebContentsObserver overrides: |
257 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 257 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
258 | 258 |
jam
2012/08/17 16:02:09
nit: no blank line
gone
2012/08/17 18:39:55
Done.
| |
259 virtual void SetUserAgentOverride(const std::string& user_agent) OVERRIDE; | |
260 | |
259 private: | 261 private: |
260 // Used to retrieve this object from |web_contents_|, which is placed in | 262 // Used to retrieve this object from |web_contents_|, which is placed in |
261 // its property bag to avoid adding additional interfaces. | 263 // its property bag to avoid adding additional interfaces. |
262 static base::PropertyAccessor<TabContents*>* property_accessor(); | 264 static base::PropertyAccessor<TabContents*>* property_accessor(); |
263 | 265 |
264 // Tab Helpers --------------------------------------------------------------- | 266 // Tab Helpers --------------------------------------------------------------- |
265 // (These provide API for callers and have a getter function listed in the | 267 // (These provide API for callers and have a getter function listed in the |
266 // "Tab Helpers" section in the member functions area, above.) | 268 // "Tab Helpers" section in the member functions area, above.) |
267 | 269 |
268 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 270 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 | 343 |
342 // The supporting objects need to outlive the WebContents dtor (as they may | 344 // The supporting objects need to outlive the WebContents dtor (as they may |
343 // be called upon during its execution). As a result, this must come last | 345 // be called upon during its execution). As a result, this must come last |
344 // in the list. | 346 // in the list. |
345 scoped_ptr<content::WebContents> web_contents_; | 347 scoped_ptr<content::WebContents> web_contents_; |
346 | 348 |
347 DISALLOW_COPY_AND_ASSIGN(TabContents); | 349 DISALLOW_COPY_AND_ASSIGN(TabContents); |
348 }; | 350 }; |
349 | 351 |
350 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 352 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |