Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: content/public/browser/web_contents.h

Issue 2217813003: Add global and per-WebContents java InterfaceRegistries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-interface-registry
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/android/java_interfaces.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 {
50 class InterfaceProvider;
51 }
52
49 namespace content { 53 namespace content {
50 54
51 class BrowserContext; 55 class BrowserContext;
52 class BrowserPluginGuestDelegate; 56 class BrowserPluginGuestDelegate;
53 class InterstitialPage; 57 class InterstitialPage;
54 class PageState; 58 class PageState;
55 class RenderFrameHost; 59 class RenderFrameHost;
56 class RenderProcessHost; 60 class RenderProcessHost;
57 class RenderViewHost; 61 class RenderViewHost;
58 class RenderWidgetHostView; 62 class RenderWidgetHostView;
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 724
721 // Requests the rects of the current find matches from the renderer 725 // Requests the rects of the current find matches from the renderer
722 // process. |current_version| is the version of find rects that the caller 726 // process. |current_version| is the version of find rects that the caller
723 // already knows about. This version will be compared to the current find 727 // already knows about. This version will be compared to the current find
724 // rects version in the renderer process (which is updated whenever the rects 728 // rects version in the renderer process (which is updated whenever the rects
725 // change), to see which new rect data will need to be sent back. 729 // change), to see which new rect data will need to be sent back.
726 // 730 //
727 // TODO(paulmeyer): This process will change slightly once multi-process 731 // TODO(paulmeyer): This process will change slightly once multi-process
728 // find-in-page is implemented. This comment should be updated at that time. 732 // find-in-page is implemented. This comment should be updated at that time.
729 virtual void RequestFindMatchRects(int current_version) = 0; 733 virtual void RequestFindMatchRects(int current_version) = 0;
734
735 // Returns an InterfaceProvider for Java-implemented interfaces that are
736 // scoped to this WebContents. This provides access to interfaces implemented
737 // in Java in the browser process to C++ code in the browser process.
738 virtual shell::InterfaceProvider* GetJavaInterfaces() = 0;
730 #elif defined(OS_MACOSX) 739 #elif defined(OS_MACOSX)
731 // Allowing other views disables optimizations which assume that only a single 740 // Allowing other views disables optimizations which assume that only a single
732 // WebContents is present. 741 // WebContents is present.
733 virtual void SetAllowOtherViews(bool allow) = 0; 742 virtual void SetAllowOtherViews(bool allow) = 0;
734 743
735 // Returns true if other views are allowed, false otherwise. 744 // Returns true if other views are allowed, false otherwise.
736 virtual bool GetAllowOtherViews() = 0; 745 virtual bool GetAllowOtherViews() = 0;
737 #endif // OS_ANDROID 746 #endif // OS_ANDROID
738 747
739 private: 748 private:
740 // This interface should only be implemented inside content. 749 // This interface should only be implemented inside content.
741 friend class WebContentsImpl; 750 friend class WebContentsImpl;
742 WebContents() {} 751 WebContents() {}
743 }; 752 };
744 753
745 } // namespace content 754 } // namespace content
746 755
747 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 756 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/java_interfaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698