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