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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); | 240 InfoBarDelegate* GetInfoBarDelegateAt(size_t index); |
241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } | 241 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } |
242 | 242 |
243 // Stop this tab rendering in fullscreen mode. | 243 // Stop this tab rendering in fullscreen mode. |
244 void ExitFullscreenMode(); | 244 void ExitFullscreenMode(); |
245 | 245 |
246 private: | 246 private: |
247 // Internal helpers ---------------------------------------------------------- | 247 // Internal helpers ---------------------------------------------------------- |
248 | 248 |
249 // Message handlers. | 249 // Message handlers. |
250 void OnJSOutOfMemory(); | |
251 void OnRegisterProtocolHandler(const std::string& protocol, | |
252 const GURL& url, | |
253 const string16& title); | |
254 void OnRegisterIntentHandler(const string16& action, | |
255 const string16& type, | |
256 const string16& href, | |
257 const string16& title); | |
258 void OnWebIntentDispatch(const IPC::Message& message, | |
259 const string16& action, | |
260 const string16& type, | |
261 const string16& data, | |
262 int intent_id); | |
263 void OnSnapshot(const SkBitmap& bitmap); | 250 void OnSnapshot(const SkBitmap& bitmap); |
264 void OnPDFHasUnsupportedFeature(); | 251 void OnPDFHasUnsupportedFeature(); |
265 void OnDidBlockDisplayingInsecureContent(); | 252 void OnDidBlockDisplayingInsecureContent(); |
266 void OnDidBlockRunningInsecureContent(); | 253 void OnDidBlockRunningInsecureContent(); |
267 | 254 |
268 // Returns the server that can provide alternate error pages. If the returned | 255 // Returns the server that can provide alternate error pages. If the returned |
269 // URL is empty, the default error page built into WebKit will be used. | 256 // URL is empty, the default error page built into WebKit will be used. |
270 GURL GetAlternateErrorPageURL() const; | 257 GURL GetAlternateErrorPageURL() const; |
271 | 258 |
272 // Send the alternate error page URL to the renderer. | 259 // Send the alternate error page URL to the renderer. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 349 |
363 // The supporting objects need to outlive the TabContents dtor (as they may | 350 // The supporting objects need to outlive the TabContents dtor (as they may |
364 // be called upon during its execution). As a result, this must come last | 351 // be called upon during its execution). As a result, this must come last |
365 // in the list. | 352 // in the list. |
366 scoped_ptr<TabContents> tab_contents_; | 353 scoped_ptr<TabContents> tab_contents_; |
367 | 354 |
368 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 355 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
369 }; | 356 }; |
370 | 357 |
371 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 358 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |