OLD | NEW |
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/common/mojo/service_registry_impl.h" | 17 #include "content/common/mojo/service_registry_impl.h" |
18 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
19 #include "content/public/common/javascript_message_type.h" | 19 #include "content/public/common/javascript_message_type.h" |
20 #include "content/public/common/page_transition_types.h" | 20 #include "content/public/common/page_transition_types.h" |
21 #include "third_party/WebKit/public/web/WebTextDirection.h" | 21 #include "third_party/WebKit/public/web/WebTextDirection.h" |
22 | 22 |
23 class GURL; | 23 class GURL; |
24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
25 struct FrameHostMsg_OpenURL_Params; | 25 struct FrameHostMsg_OpenURL_Params; |
| 26 struct FrameHostMsg_BeginNavigation_Params; |
26 struct FrameMsg_Navigate_Params; | 27 struct FrameMsg_Navigate_Params; |
27 | 28 |
28 namespace base { | 29 namespace base { |
29 class FilePath; | 30 class FilePath; |
30 class ListValue; | 31 class ListValue; |
31 } | 32 } |
32 | 33 |
33 namespace content { | 34 namespace content { |
34 | 35 |
35 class CrossProcessFrameConnector; | 36 class CrossProcessFrameConnector; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 void OnCancelDesktopNotification(int notification_id); | 240 void OnCancelDesktopNotification(int notification_id); |
240 void OnTextSurroundingSelectionResponse(const base::string16& content, | 241 void OnTextSurroundingSelectionResponse(const base::string16& content, |
241 size_t start_offset, | 242 size_t start_offset, |
242 size_t end_offset); | 243 size_t end_offset); |
243 void OnDidAccessInitialDocument(); | 244 void OnDidAccessInitialDocument(); |
244 void OnDidDisownOpener(); | 245 void OnDidDisownOpener(); |
245 void OnUpdateTitle(int32 page_id, | 246 void OnUpdateTitle(int32 page_id, |
246 const base::string16& title, | 247 const base::string16& title, |
247 blink::WebTextDirection title_direction); | 248 blink::WebTextDirection title_direction); |
248 void OnUpdateEncoding(const std::string& encoding); | 249 void OnUpdateEncoding(const std::string& encoding); |
| 250 void OnBeginNavigation( |
| 251 const FrameHostMsg_BeginNavigation_Params& params); |
249 | 252 |
250 // Returns whether the given URL is allowed to commit in the current process. | 253 // Returns whether the given URL is allowed to commit in the current process. |
251 // This is a more conservative check than RenderProcessHost::FilterURL, since | 254 // This is a more conservative check than RenderProcessHost::FilterURL, since |
252 // it will be used to kill processes that commit unauthorized URLs. | 255 // it will be used to kill processes that commit unauthorized URLs. |
253 bool CanCommitURL(const GURL& url); | 256 bool CanCommitURL(const GURL& url); |
254 | 257 |
255 void DesktopNotificationPermissionRequestDone(int callback_context); | 258 void DesktopNotificationPermissionRequestDone(int callback_context); |
256 | 259 |
257 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 260 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
258 // refcount that calls Shutdown when it reaches zero. This allows each | 261 // refcount that calls Shutdown when it reaches zero. This allows each |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 ServiceRegistryImpl service_registry_; | 309 ServiceRegistryImpl service_registry_; |
307 | 310 |
308 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 311 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
309 | 312 |
310 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 313 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
311 }; | 314 }; |
312 | 315 |
313 } // namespace content | 316 } // namespace content |
314 | 317 |
315 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 318 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |