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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } | 229 void set_infobars_enabled(bool value) { infobars_enabled_ = value; } |
230 | 230 |
231 private: | 231 private: |
232 // Internal helpers ---------------------------------------------------------- | 232 // Internal helpers ---------------------------------------------------------- |
233 | 233 |
234 // Message handlers. | 234 // Message handlers. |
235 void OnJSOutOfMemory(); | 235 void OnJSOutOfMemory(); |
236 void OnRegisterProtocolHandler(const std::string& protocol, | 236 void OnRegisterProtocolHandler(const std::string& protocol, |
237 const GURL& url, | 237 const GURL& url, |
238 const string16& title); | 238 const string16& title); |
| 239 void OnRegisterIntentHandler(const string16& action, |
| 240 const string16& type, |
| 241 const string16& href, |
| 242 const string16& title); |
239 void OnSnapshot(const SkBitmap& bitmap); | 243 void OnSnapshot(const SkBitmap& bitmap); |
240 void OnPDFHasUnsupportedFeature(); | 244 void OnPDFHasUnsupportedFeature(); |
241 void OnDidBlockDisplayingInsecureContent(); | 245 void OnDidBlockDisplayingInsecureContent(); |
242 void OnDidBlockRunningInsecureContent(); | 246 void OnDidBlockRunningInsecureContent(); |
243 | 247 |
244 // Returns the server that can provide alternate error pages. If the returned | 248 // Returns the server that can provide alternate error pages. If the returned |
245 // URL is empty, the default error page built into WebKit will be used. | 249 // URL is empty, the default error page built into WebKit will be used. |
246 GURL GetAlternateErrorPageURL() const; | 250 GURL GetAlternateErrorPageURL() const; |
247 | 251 |
248 // Send the alternate error page URL to the renderer. | 252 // Send the alternate error page URL to the renderer. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 338 |
335 // The supporting objects need to outlive the TabContents dtor (as they may | 339 // The supporting objects need to outlive the TabContents dtor (as they may |
336 // be called upon during its execution). As a result, this must come last | 340 // be called upon during its execution). As a result, this must come last |
337 // in the list. | 341 // in the list. |
338 scoped_ptr<TabContents> tab_contents_; | 342 scoped_ptr<TabContents> tab_contents_; |
339 | 343 |
340 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 344 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
341 }; | 345 }; |
342 | 346 |
343 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 347 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |