| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "webkit/glue/resource_type.h" | 30 #include "webkit/glue/resource_type.h" |
| 31 | 31 |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 33 #include "base/win/scoped_handle.h" | 33 #include "base/win/scoped_handle.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 class InterstitialPageImpl; | 36 class InterstitialPageImpl; |
| 37 class SavePackage; | 37 class SavePackage; |
| 38 class SessionStorageNamespaceImpl; | 38 class SessionStorageNamespaceImpl; |
| 39 class WebContentsImpl; | 39 class WebContentsImpl; |
| 40 struct BrowserPluginHostMsg_ResizeGuest_Params; |
| 40 struct ViewMsg_PostMessage_Params; | 41 struct ViewMsg_PostMessage_Params; |
| 41 | 42 |
| 42 namespace content { | 43 namespace content { |
| 43 class BrowserPluginEmbedder; | 44 class BrowserPluginEmbedder; |
| 44 class BrowserPluginGuest; | 45 class BrowserPluginGuest; |
| 45 class ColorChooser; | 46 class ColorChooser; |
| 46 class DownloadItem; | 47 class DownloadItem; |
| 47 class JavaScriptDialogCreator; | 48 class JavaScriptDialogCreator; |
| 48 class RenderViewHost; | 49 class RenderViewHost; |
| 49 class RenderViewHostDelegateView; | 50 class RenderViewHostDelegateView; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 564 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 564 void OnPepperPluginHung(int plugin_child_id, | 565 void OnPepperPluginHung(int plugin_child_id, |
| 565 const FilePath& path, | 566 const FilePath& path, |
| 566 bool is_hung); | 567 bool is_hung); |
| 567 void OnWebUISend(const GURL& source_url, | 568 void OnWebUISend(const GURL& source_url, |
| 568 const std::string& name, | 569 const std::string& name, |
| 569 const base::ListValue& args); | 570 const base::ListValue& args); |
| 570 void OnRequestPpapiBrokerPermission(int request_id, | 571 void OnRequestPpapiBrokerPermission(int request_id, |
| 571 const GURL& url, | 572 const GURL& url, |
| 572 const FilePath& plugin_path); | 573 const FilePath& plugin_path); |
| 573 void OnBrowserPluginNavigateGuest(int instance_id, | 574 void OnBrowserPluginNavigateGuest( |
| 574 const std::string& src, | 575 int instance_id, |
| 575 const gfx::Size& size); | 576 const std::string& src, |
| 577 const BrowserPluginHostMsg_ResizeGuest_Params& resize_params); |
| 576 | 578 |
| 577 // Changes the IsLoading state and notifies delegate as needed | 579 // Changes the IsLoading state and notifies delegate as needed |
| 578 // |details| is used to provide details on the load that just finished | 580 // |details| is used to provide details on the load that just finished |
| 579 // (but can be null if not applicable). Can be overridden. | 581 // (but can be null if not applicable). Can be overridden. |
| 580 void SetIsLoading(bool is_loading, | 582 void SetIsLoading(bool is_loading, |
| 581 content::LoadNotificationDetails* details); | 583 content::LoadNotificationDetails* details); |
| 582 | 584 |
| 583 // Called by derived classes to indicate that we're no longer waiting for a | 585 // Called by derived classes to indicate that we're no longer waiting for a |
| 584 // response. This won't actually update the throbber, but it will get picked | 586 // response. This won't actually update the throbber, but it will get picked |
| 585 // up at the next animation step if the throbber is going. | 587 // up at the next animation step if the throbber is going. |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 content::RenderViewHost* message_source_; | 868 content::RenderViewHost* message_source_; |
| 867 | 869 |
| 868 // All live RenderWidgetHostImpls that are created by this object and may | 870 // All live RenderWidgetHostImpls that are created by this object and may |
| 869 // outlive it. | 871 // outlive it. |
| 870 std::set<content::RenderWidgetHostImpl*> created_widgets_; | 872 std::set<content::RenderWidgetHostImpl*> created_widgets_; |
| 871 | 873 |
| 872 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 874 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 873 }; | 875 }; |
| 874 | 876 |
| 875 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 877 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |