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_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); | 49 static RenderWidgetHelper* FromProcessHostID(int render_process_host_id); |
50 | 50 |
51 // UI THREAD ONLY ----------------------------------------------------------- | 51 // UI THREAD ONLY ----------------------------------------------------------- |
52 | 52 |
53 // These two functions provide the backend implementation of the | 53 // These two functions provide the backend implementation of the |
54 // corresponding functions in RenderProcessHost. See those declarations | 54 // corresponding functions in RenderProcessHost. See those declarations |
55 // for documentation. | 55 // for documentation. |
56 void ResumeDeferredNavigation(const GlobalRequestID& request_id); | 56 void ResumeDeferredNavigation(const GlobalRequestID& request_id); |
57 | 57 |
58 // IO THREAD ONLY ----------------------------------------------------------- | 58 // IO THREAD ONLY ----------------------------------------------------------- |
59 | |
60 void CreateNewWindow(mojom::CreateNewWindowParamsPtr params, | |
61 bool no_javascript_access, | |
62 int32_t* render_view_route_id, | |
63 int32_t* main_frame_route_id, | |
64 int32_t* main_frame_widget_route_id, | |
65 SessionStorageNamespace* session_storage_namespace); | |
66 void CreateNewWidget(int opener_id, | 59 void CreateNewWidget(int opener_id, |
67 blink::WebPopupType popup_type, | 60 blink::WebPopupType popup_type, |
68 int* route_id); | 61 int* route_id); |
69 void CreateNewFullscreenWidget(int opener_id, int* route_id); | 62 void CreateNewFullscreenWidget(int opener_id, int* route_id); |
70 | 63 |
71 private: | 64 private: |
72 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; | 65 friend class base::RefCountedThreadSafe<RenderWidgetHelper>; |
73 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 66 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
74 friend class base::DeleteHelper<RenderWidgetHelper>; | 67 friend class base::DeleteHelper<RenderWidgetHelper>; |
75 | 68 |
(...skipping 29 matching lines...) Expand all Loading... |
105 base::AtomicSequenceNumber next_routing_id_; | 98 base::AtomicSequenceNumber next_routing_id_; |
106 | 99 |
107 ResourceDispatcherHostImpl* resource_dispatcher_host_; | 100 ResourceDispatcherHostImpl* resource_dispatcher_host_; |
108 | 101 |
109 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); | 102 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); |
110 }; | 103 }; |
111 | 104 |
112 } // namespace content | 105 } // namespace content |
113 | 106 |
114 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ | 107 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ |
OLD | NEW |