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

Side by Side Diff: content/browser/renderer_host/render_widget_helper.h

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: associated with IPC channel Created 3 years, 8 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698