| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 477 |
| 478 // Clears this tab's opener if it has been closed. | 478 // Clears this tab's opener if it has been closed. |
| 479 void OnWebContentsDestroyed(content::WebContents* web_contents); | 479 void OnWebContentsDestroyed(content::WebContents* web_contents); |
| 480 | 480 |
| 481 // Callback function when showing JS dialogs. | 481 // Callback function when showing JS dialogs. |
| 482 void OnDialogClosed(content::RenderViewHost* rvh, | 482 void OnDialogClosed(content::RenderViewHost* rvh, |
| 483 IPC::Message* reply_msg, | 483 IPC::Message* reply_msg, |
| 484 bool success, | 484 bool success, |
| 485 const string16& user_input); | 485 const string16& user_input); |
| 486 | 486 |
| 487 // Callback function when requesting permission to access the PPAPI broker. |
| 488 // |result| is true iff permission was granted. |
| 489 void OnPpapiBrokerPermissionResult(int request_id, bool result); |
| 490 |
| 487 // IPC message handlers. | 491 // IPC message handlers. |
| 488 void OnRegisterIntentService(const webkit_glue::WebIntentServiceData& data, | 492 void OnRegisterIntentService(const webkit_glue::WebIntentServiceData& data, |
| 489 bool user_gesture); | 493 bool user_gesture); |
| 490 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, | 494 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, |
| 491 int intent_id); | 495 int intent_id); |
| 492 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 496 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
| 493 const std::string& security_info, | 497 const std::string& security_info, |
| 494 const std::string& http_request, | 498 const std::string& http_request, |
| 495 const std::string& mime_type, | 499 const std::string& mime_type, |
| 496 ResourceType::Type resource_type); | 500 ResourceType::Type resource_type); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 526 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 530 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 527 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 531 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
| 528 void OnEndColorChooser(int color_chooser_id); | 532 void OnEndColorChooser(int color_chooser_id); |
| 529 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 533 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 530 void OnPepperPluginHung(int plugin_child_id, | 534 void OnPepperPluginHung(int plugin_child_id, |
| 531 const FilePath& path, | 535 const FilePath& path, |
| 532 bool is_hung); | 536 bool is_hung); |
| 533 void OnWebUISend(const GURL& source_url, | 537 void OnWebUISend(const GURL& source_url, |
| 534 const std::string& name, | 538 const std::string& name, |
| 535 const base::ListValue& args); | 539 const base::ListValue& args); |
| 540 void OnRequestPpapiBrokerPermission(int request_id, |
| 541 const GURL& url, |
| 542 const FilePath& plugin_path); |
| 536 | 543 |
| 537 // Changes the IsLoading state and notifies delegate as needed | 544 // Changes the IsLoading state and notifies delegate as needed |
| 538 // |details| is used to provide details on the load that just finished | 545 // |details| is used to provide details on the load that just finished |
| 539 // (but can be null if not applicable). Can be overridden. | 546 // (but can be null if not applicable). Can be overridden. |
| 540 void SetIsLoading(bool is_loading, | 547 void SetIsLoading(bool is_loading, |
| 541 content::LoadNotificationDetails* details); | 548 content::LoadNotificationDetails* details); |
| 542 | 549 |
| 543 // Called by derived classes to indicate that we're no longer waiting for a | 550 // Called by derived classes to indicate that we're no longer waiting for a |
| 544 // response. This won't actually update the throbber, but it will get picked | 551 // response. This won't actually update the throbber, but it will get picked |
| 545 // up at the next animation step if the throbber is going. | 552 // up at the next animation step if the throbber is going. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 content::NotificationRegistrar registrar_; | 820 content::NotificationRegistrar registrar_; |
| 814 | 821 |
| 815 // Used during IPC message dispatching so that the handlers can get a pointer | 822 // Used during IPC message dispatching so that the handlers can get a pointer |
| 816 // to the RVH through which the message was received. | 823 // to the RVH through which the message was received. |
| 817 content::RenderViewHost* message_source_; | 824 content::RenderViewHost* message_source_; |
| 818 | 825 |
| 819 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 826 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 820 }; | 827 }; |
| 821 | 828 |
| 822 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 829 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |