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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: rebase 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/linked_ptr.h" 19 #include "base/memory/linked_ptr.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/observer_list.h" 22 #include "base/observer_list.h"
23 #include "base/process/process_handle.h" 23 #include "base/process/process_handle.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/common/accessibility_mode_enums.h" 25 #include "content/common/accessibility_mode_enums.h"
26 #include "content/common/associated_interface_registry_impl.h"
26 #include "content/common/frame.mojom.h" 27 #include "content/common/frame.mojom.h"
27 #include "content/common/frame_message_enums.h" 28 #include "content/common/frame_message_enums.h"
29 #include "content/public/common/associated_interfaces.mojom.h"
28 #include "content/public/common/console_message_level.h" 30 #include "content/public/common/console_message_level.h"
29 #include "content/public/common/javascript_message_type.h" 31 #include "content/public/common/javascript_message_type.h"
30 #include "content/public/common/referrer.h" 32 #include "content/public/common/referrer.h"
31 #include "content/public/common/stop_find_action.h" 33 #include "content/public/common/stop_find_action.h"
32 #include "content/public/renderer/render_frame.h" 34 #include "content/public/renderer/render_frame.h"
33 #include "content/renderer/frame_blame_context.h" 35 #include "content/renderer/frame_blame_context.h"
34 #include "content/renderer/mojo/blink_interface_provider_impl.h" 36 #include "content/renderer/mojo/blink_interface_provider_impl.h"
35 #include "content/renderer/renderer_webcookiejar_impl.h" 37 #include "content/renderer/renderer_webcookiejar_impl.h"
36 #include "ipc/ipc_message.h" 38 #include "ipc/ipc_message.h"
37 #include "ipc/ipc_platform_file.h" 39 #include "ipc/ipc_platform_file.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 class InterfaceRegistry; 115 class InterfaceRegistry;
114 class InterfaceProvider; 116 class InterfaceProvider;
115 } 117 }
116 118
117 namespace url { 119 namespace url {
118 class Origin; 120 class Origin;
119 } 121 }
120 122
121 namespace content { 123 namespace content {
122 124
125 class AssociatedInterfaceProviderImpl;
123 class ChildFrameCompositingHelper; 126 class ChildFrameCompositingHelper;
124 class CompositorDependencies; 127 class CompositorDependencies;
125 class DevToolsAgent; 128 class DevToolsAgent;
126 class DocumentState; 129 class DocumentState;
127 class ExternalPopupMenu; 130 class ExternalPopupMenu;
128 class HistoryEntry; 131 class HistoryEntry;
129 class ManifestManager; 132 class ManifestManager;
130 class MediaInterfaceProvider; 133 class MediaInterfaceProvider;
131 class MediaStreamDispatcher; 134 class MediaStreamDispatcher;
132 class MediaStreamRendererFactory; 135 class MediaStreamRendererFactory;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 const WebPluginInfo& info, 403 const WebPluginInfo& info,
401 const blink::WebPluginParams& params, 404 const blink::WebPluginParams& params,
402 std::unique_ptr<PluginInstanceThrottler> throttler) override; 405 std::unique_ptr<PluginInstanceThrottler> throttler) override;
403 void LoadURLExternally(const blink::WebURLRequest& request, 406 void LoadURLExternally(const blink::WebURLRequest& request,
404 blink::WebNavigationPolicy policy) override; 407 blink::WebNavigationPolicy policy) override;
405 void ExecuteJavaScript(const base::string16& javascript) override; 408 void ExecuteJavaScript(const base::string16& javascript) override;
406 bool IsMainFrame() override; 409 bool IsMainFrame() override;
407 bool IsHidden() override; 410 bool IsHidden() override;
408 shell::InterfaceRegistry* GetInterfaceRegistry() override; 411 shell::InterfaceRegistry* GetInterfaceRegistry() override;
409 shell::InterfaceProvider* GetRemoteInterfaces() override; 412 shell::InterfaceProvider* GetRemoteInterfaces() override;
413 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() override;
414 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override;
410 #if defined(ENABLE_PLUGINS) 415 #if defined(ENABLE_PLUGINS)
411 void RegisterPeripheralPlugin( 416 void RegisterPeripheralPlugin(
412 const url::Origin& content_origin, 417 const url::Origin& content_origin,
413 const base::Closure& unthrottle_callback) override; 418 const base::Closure& unthrottle_callback) override;
414 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus( 419 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus(
415 const url::Origin& main_frame_origin, 420 const url::Origin& main_frame_origin,
416 const url::Origin& content_origin, 421 const url::Origin& content_origin,
417 const gfx::Size& unobscured_size, 422 const gfx::Size& unobscured_size,
418 RecordPeripheralDecision record_decision) const override; 423 RecordPeripheralDecision record_decision) const override;
419 void WhitelistContentOrigin(const url::Origin& content_origin) override; 424 void WhitelistContentOrigin(const url::Origin& content_origin) override;
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 // the RenderFrameImpl to NULL it out when it destructs. 1273 // the RenderFrameImpl to NULL it out when it destructs.
1269 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1274 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1270 #endif 1275 #endif
1271 1276
1272 mojo::Binding<mojom::Frame> frame_binding_; 1277 mojo::Binding<mojom::Frame> frame_binding_;
1273 mojom::FrameHostPtr frame_host_; 1278 mojom::FrameHostPtr frame_host_;
1274 1279
1275 // Indicates whether |didAccessInitialDocument| was called. 1280 // Indicates whether |didAccessInitialDocument| was called.
1276 bool has_accessed_initial_document_; 1281 bool has_accessed_initial_document_;
1277 1282
1283 AssociatedInterfaceRegistryImpl associated_interfaces_;
1284 std::unique_ptr<AssociatedInterfaceProviderImpl>
1285 remote_associated_interfaces_;
1286
1278 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1287 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1279 1288
1280 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1289 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1281 }; 1290 };
1282 1291
1283 } // namespace content 1292 } // namespace content
1284 1293
1285 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1294 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698