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

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

Issue 9837074: Make it so that allow_js_access: false can be used with background pages created by window.open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation. Created 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 11
12 #include "base/atomic_sequence_num.h" 12 #include "base/atomic_sequence_num.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/synchronization/waitable_event.h" 17 #include "base/synchronization/waitable_event.h"
18 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/common/window_container_type.h" 19 #include "content/public/common/window_container_type.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/surface/transport_dib.h" 22 #include "ui/gfx/surface/transport_dib.h"
22 23
23 namespace IPC { 24 namespace IPC {
24 class Message; 25 class Message;
25 } 26 }
26 27
27 namespace base { 28 namespace base {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Given the id of a transport DIB, return a mapping to it or NULL on error. 122 // Given the id of a transport DIB, return a mapping to it or NULL on error.
122 TransportDIB* MapTransportDIB(TransportDIB::Id dib_id); 123 TransportDIB* MapTransportDIB(TransportDIB::Id dib_id);
123 #endif 124 #endif
124 125
125 // IO THREAD ONLY ----------------------------------------------------------- 126 // IO THREAD ONLY -----------------------------------------------------------
126 127
127 // Called on the IO thread when a UpdateRect message is received. 128 // Called on the IO thread when a UpdateRect message is received.
128 void DidReceiveUpdateMsg(const IPC::Message& msg); 129 void DidReceiveUpdateMsg(const IPC::Message& msg);
129 130
130 void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params, 131 void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params,
132 bool no_javascript_access,
131 base::ProcessHandle render_process, 133 base::ProcessHandle render_process,
132 int* route_id, 134 int* route_id,
133 int* surface_id); 135 int* surface_id);
134 void CreateNewWidget(int opener_id, 136 void CreateNewWidget(int opener_id,
135 WebKit::WebPopupType popup_type, 137 WebKit::WebPopupType popup_type,
136 int* route_id, 138 int* route_id,
137 int* surface_id); 139 int* surface_id);
138 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id); 140 void CreateNewFullscreenWidget(int opener_id, int* route_id, int* surface_id);
139 141
140 #if defined(OS_MACOSX) 142 #if defined(OS_MACOSX)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 216
215 // The next routing id to use. 217 // The next routing id to use.
216 base::AtomicSequenceNumber next_routing_id_; 218 base::AtomicSequenceNumber next_routing_id_;
217 219
218 content::ResourceDispatcherHostImpl* resource_dispatcher_host_; 220 content::ResourceDispatcherHostImpl* resource_dispatcher_host_;
219 221
220 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper); 222 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHelper);
221 }; 223 };
222 224
223 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_ 225 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HELPER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/render_widget_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698