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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
463 | 463 |
464 // Clears this tab's opener if it has been closed. | 464 // Clears this tab's opener if it has been closed. |
465 void OnWebContentsDestroyed(content::WebContents* web_contents); | 465 void OnWebContentsDestroyed(content::WebContents* web_contents); |
466 | 466 |
467 // Callback function when showing JS dialogs. | 467 // Callback function when showing JS dialogs. |
468 void OnDialogClosed(content::RenderViewHost* rvh, | 468 void OnDialogClosed(content::RenderViewHost* rvh, |
469 IPC::Message* reply_msg, | 469 IPC::Message* reply_msg, |
470 bool success, | 470 bool success, |
471 const string16& user_input); | 471 const string16& user_input); |
472 | 472 |
473 // Callback function when requesting permission to access the PPAPI broker. | |
ddorwin
2012/08/12 22:51:16
Maybe explain the meaning of |result|. Or use an e
Bernhard Bauer
2012/08/13 09:02:11
Done.
| |
474 void OnPpapiBrokerPermissionResult(int request_id, bool result); | |
475 | |
473 // IPC message handlers. | 476 // IPC message handlers. |
474 void OnRegisterIntentService(const webkit_glue::WebIntentServiceData& data, | 477 void OnRegisterIntentService(const webkit_glue::WebIntentServiceData& data, |
475 bool user_gesture); | 478 bool user_gesture); |
476 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, | 479 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, |
477 int intent_id); | 480 int intent_id); |
478 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 481 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
479 const std::string& security_info, | 482 const std::string& security_info, |
480 const std::string& http_request, | 483 const std::string& http_request, |
481 const std::string& mime_type, | 484 const std::string& mime_type, |
482 ResourceType::Type resource_type); | 485 ResourceType::Type resource_type); |
(...skipping 29 matching lines...) Expand all Loading... | |
512 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 515 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
513 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 516 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
514 void OnEndColorChooser(int color_chooser_id); | 517 void OnEndColorChooser(int color_chooser_id); |
515 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 518 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
516 void OnPepperPluginHung(int plugin_child_id, | 519 void OnPepperPluginHung(int plugin_child_id, |
517 const FilePath& path, | 520 const FilePath& path, |
518 bool is_hung); | 521 bool is_hung); |
519 void OnWebUISend(const GURL& source_url, | 522 void OnWebUISend(const GURL& source_url, |
520 const std::string& name, | 523 const std::string& name, |
521 const base::ListValue& args); | 524 const base::ListValue& args); |
525 void OnRequestPpapiBrokerPermission(int request_id, | |
526 const GURL& url, | |
527 const FilePath& plugin_path); | |
522 | 528 |
523 // Changes the IsLoading state and notifies delegate as needed | 529 // Changes the IsLoading state and notifies delegate as needed |
524 // |details| is used to provide details on the load that just finished | 530 // |details| is used to provide details on the load that just finished |
525 // (but can be null if not applicable). Can be overridden. | 531 // (but can be null if not applicable). Can be overridden. |
526 void SetIsLoading(bool is_loading, | 532 void SetIsLoading(bool is_loading, |
527 content::LoadNotificationDetails* details); | 533 content::LoadNotificationDetails* details); |
528 | 534 |
529 // Called by derived classes to indicate that we're no longer waiting for a | 535 // Called by derived classes to indicate that we're no longer waiting for a |
530 // response. This won't actually update the throbber, but it will get picked | 536 // response. This won't actually update the throbber, but it will get picked |
531 // up at the next animation step if the throbber is going. | 537 // up at the next animation step if the throbber is going. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
799 content::NotificationRegistrar registrar_; | 805 content::NotificationRegistrar registrar_; |
800 | 806 |
801 // Used during IPC message dispatching so that the handlers can get a pointer | 807 // Used during IPC message dispatching so that the handlers can get a pointer |
802 // to the RVH through which the message was received. | 808 // to the RVH through which the message was received. |
803 content::RenderViewHost* message_source_; | 809 content::RenderViewHost* message_source_; |
804 | 810 |
805 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 811 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
806 }; | 812 }; |
807 | 813 |
808 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 814 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |