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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 struct WebFindOptions; | 42 struct WebFindOptions; |
43 } | 43 } |
44 | 44 |
45 namespace net { | 45 namespace net { |
46 struct LoadStateWithParam; | 46 struct LoadStateWithParam; |
47 } | 47 } |
48 | 48 |
49 namespace shell { | 49 namespace service_manager { |
50 class InterfaceProvider; | 50 class InterfaceProvider; |
51 } | 51 } |
52 | 52 |
53 namespace content { | 53 namespace content { |
54 | 54 |
55 class BrowserContext; | 55 class BrowserContext; |
56 class BrowserPluginGuestDelegate; | 56 class BrowserPluginGuestDelegate; |
57 class InterstitialPage; | 57 class InterstitialPage; |
58 class PageState; | 58 class PageState; |
59 class RenderFrameHost; | 59 class RenderFrameHost; |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 // rects version in the renderer process (which is updated whenever the rects | 734 // rects version in the renderer process (which is updated whenever the rects |
735 // change), to see which new rect data will need to be sent back. | 735 // change), to see which new rect data will need to be sent back. |
736 // | 736 // |
737 // TODO(paulmeyer): This process will change slightly once multi-process | 737 // TODO(paulmeyer): This process will change slightly once multi-process |
738 // find-in-page is implemented. This comment should be updated at that time. | 738 // find-in-page is implemented. This comment should be updated at that time. |
739 virtual void RequestFindMatchRects(int current_version) = 0; | 739 virtual void RequestFindMatchRects(int current_version) = 0; |
740 | 740 |
741 // Returns an InterfaceProvider for Java-implemented interfaces that are | 741 // Returns an InterfaceProvider for Java-implemented interfaces that are |
742 // scoped to this WebContents. This provides access to interfaces implemented | 742 // scoped to this WebContents. This provides access to interfaces implemented |
743 // in Java in the browser process to C++ code in the browser process. | 743 // in Java in the browser process to C++ code in the browser process. |
744 virtual shell::InterfaceProvider* GetJavaInterfaces() = 0; | 744 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; |
745 #elif defined(OS_MACOSX) | 745 #elif defined(OS_MACOSX) |
746 // Allowing other views disables optimizations which assume that only a single | 746 // Allowing other views disables optimizations which assume that only a single |
747 // WebContents is present. | 747 // WebContents is present. |
748 virtual void SetAllowOtherViews(bool allow) = 0; | 748 virtual void SetAllowOtherViews(bool allow) = 0; |
749 | 749 |
750 // Returns true if other views are allowed, false otherwise. | 750 // Returns true if other views are allowed, false otherwise. |
751 virtual bool GetAllowOtherViews() = 0; | 751 virtual bool GetAllowOtherViews() = 0; |
752 #endif // OS_ANDROID | 752 #endif // OS_ANDROID |
753 | 753 |
754 private: | 754 private: |
755 // This interface should only be implemented inside content. | 755 // This interface should only be implemented inside content. |
756 friend class WebContentsImpl; | 756 friend class WebContentsImpl; |
757 WebContents() {} | 757 WebContents() {} |
758 }; | 758 }; |
759 | 759 |
760 } // namespace content | 760 } // namespace content |
761 | 761 |
762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |