| 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 namespace net { | 42 namespace net { |
| 43 struct LoadStateWithParam; | 43 struct LoadStateWithParam; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace content { | 46 namespace content { |
| 47 | 47 |
| 48 class BrowserContext; | 48 class BrowserContext; |
| 49 class BrowserPluginGuestDelegate; | 49 class BrowserPluginGuestDelegate; |
| 50 class InterstitialPage; | 50 class InterstitialPage; |
| 51 class MediaControlsDelegate; |
| 51 class PageState; | 52 class PageState; |
| 52 class RenderFrameHost; | 53 class RenderFrameHost; |
| 53 class RenderProcessHost; | 54 class RenderProcessHost; |
| 54 class RenderViewHost; | 55 class RenderViewHost; |
| 55 class RenderWidgetHostView; | 56 class RenderWidgetHostView; |
| 56 class SiteInstance; | 57 class SiteInstance; |
| 57 class WebContentsDelegate; | 58 class WebContentsDelegate; |
| 58 struct CustomContextMenuContext; | 59 struct CustomContextMenuContext; |
| 59 struct DropData; | 60 struct DropData; |
| 60 struct Manifest; | 61 struct Manifest; |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 // used in showCreatedWindow() or sometimes later in cases where | 652 // used in showCreatedWindow() or sometimes later in cases where |
| 652 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 653 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
| 653 // should not yet be resumed. Then the client is responsible for calling this | 654 // should not yet be resumed. Then the client is responsible for calling this |
| 654 // as soon as they are ready. | 655 // as soon as they are ready. |
| 655 virtual void ResumeLoadingCreatedWebContents() = 0; | 656 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 656 | 657 |
| 657 #if defined(OS_ANDROID) | 658 #if defined(OS_ANDROID) |
| 658 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 659 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 659 jobject jweb_contents_android); | 660 jobject jweb_contents_android); |
| 660 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 661 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 662 |
| 663 // Returns the delegate for the media controls (e.g. lock screen or |
| 664 // notification). |
| 665 virtual MediaControlsDelegate* GetMediaControlsDelegate() = 0; |
| 661 #elif defined(OS_MACOSX) | 666 #elif defined(OS_MACOSX) |
| 662 // Allowing other views disables optimizations which assume that only a single | 667 // Allowing other views disables optimizations which assume that only a single |
| 663 // WebContents is present. | 668 // WebContents is present. |
| 664 virtual void SetAllowOtherViews(bool allow) = 0; | 669 virtual void SetAllowOtherViews(bool allow) = 0; |
| 665 | 670 |
| 666 // Returns true if other views are allowed, false otherwise. | 671 // Returns true if other views are allowed, false otherwise. |
| 667 virtual bool GetAllowOtherViews() = 0; | 672 virtual bool GetAllowOtherViews() = 0; |
| 668 #endif // OS_ANDROID | 673 #endif // OS_ANDROID |
| 669 | 674 |
| 670 private: | 675 private: |
| 671 // This interface should only be implemented inside content. | 676 // This interface should only be implemented inside content. |
| 672 friend class WebContentsImpl; | 677 friend class WebContentsImpl; |
| 673 WebContents() {} | 678 WebContents() {} |
| 674 }; | 679 }; |
| 675 | 680 |
| 676 } // namespace content | 681 } // namespace content |
| 677 | 682 |
| 678 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 683 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |