OLD | NEW |
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 CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 virtual void DidBecomeSelected() OVERRIDE; | 219 virtual void DidBecomeSelected() OVERRIDE; |
220 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 220 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
221 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 221 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
222 | 222 |
223 // content::NotificationObserver overrides: | 223 // content::NotificationObserver overrides: |
224 virtual void Observe(int type, | 224 virtual void Observe(int type, |
225 const content::NotificationSource& source, | 225 const content::NotificationSource& source, |
226 const content::NotificationDetails& details) OVERRIDE; | 226 const content::NotificationDetails& details) OVERRIDE; |
227 | 227 |
228 private: | 228 private: |
229 FRIEND_TEST_ALL_PREFIXES( | 229 friend class PrefsTabHelperTest; |
230 PrefsTabHelperTest, OverridePrefsOnViewCreation); | |
231 | 230 |
232 // Internal helpers ---------------------------------------------------------- | 231 // Internal helpers ---------------------------------------------------------- |
233 | 232 |
234 // Message handlers. | 233 // Message handlers. |
235 void OnSnapshot(const SkBitmap& bitmap); | 234 void OnSnapshot(const SkBitmap& bitmap); |
236 void OnPDFHasUnsupportedFeature(); | 235 void OnPDFHasUnsupportedFeature(); |
237 | 236 |
238 // Returns the server that can provide alternate error pages. If the returned | 237 // Returns the server that can provide alternate error pages. If the returned |
239 // URL is empty, the default error page built into WebKit will be used. | 238 // URL is empty, the default error page built into WebKit will be used. |
240 GURL GetAlternateErrorPageURL() const; | 239 GURL GetAlternateErrorPageURL() const; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 325 |
327 // The supporting objects need to outlive the TabContents dtor (as they may | 326 // The supporting objects need to outlive the TabContents dtor (as they may |
328 // be called upon during its execution). As a result, this must come last | 327 // be called upon during its execution). As a result, this must come last |
329 // in the list. | 328 // in the list. |
330 scoped_ptr<TabContents> tab_contents_; | 329 scoped_ptr<TabContents> tab_contents_; |
331 | 330 |
332 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 331 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
333 }; | 332 }; |
334 | 333 |
335 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 334 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |