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 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; |
258 | 259 |
259 private: | 260 private: |
260 // Used to retrieve this object from |web_contents_|, which is placed in | 261 // Used to retrieve this object from |web_contents_|, which is placed in |
261 // its property bag to avoid adding additional interfaces. | 262 // its property bag to avoid adding additional interfaces. |
262 static base::PropertyAccessor<TabContents*>* property_accessor(); | 263 static base::PropertyAccessor<TabContents*>* property_accessor(); |
263 | 264 |
264 // Tab Helpers --------------------------------------------------------------- | 265 // Tab Helpers --------------------------------------------------------------- |
265 // (These provide API for callers and have a getter function listed in the | 266 // (These provide API for callers and have a getter function listed in the |
266 // "Tab Helpers" section in the member functions area, above.) | 267 // "Tab Helpers" section in the member functions area, above.) |
267 | 268 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 342 |
342 // The supporting objects need to outlive the WebContents dtor (as they may | 343 // 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 | 344 // be called upon during its execution). As a result, this must come last |
344 // in the list. | 345 // in the list. |
345 scoped_ptr<content::WebContents> web_contents_; | 346 scoped_ptr<content::WebContents> web_contents_; |
346 | 347 |
347 DISALLOW_COPY_AND_ASSIGN(TabContents); | 348 DISALLOW_COPY_AND_ASSIGN(TabContents); |
348 }; | 349 }; |
349 | 350 |
350 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 351 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |